From owner-svn-src-stable-7@FreeBSD.ORG Sat May 9 00:35:39 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BDC5106564A; Sat, 9 May 2009 00:35:39 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3788F8FC20; Sat, 9 May 2009 00:35:39 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n490Zc6C006956; Sat, 9 May 2009 00:35:38 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n490Zcal006955; Sat, 9 May 2009 00:35:38 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200905090035.n490Zcal006955@svn.freebsd.org> From: Xin LI Date: Sat, 9 May 2009 00:35:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191929 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb netinet X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2009 00:35:41 -0000 Author: delphij Date: Sat May 9 00:35:38 2009 New Revision: 191929 URL: http://svn.freebsd.org/changeset/base/191929 Log: MFC r176093 (glebius): If the vhid already present, return EEXIST instead of non-informative EINVAL. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/netinet/ip_carp.c Modified: stable/7/sys/netinet/ip_carp.c ============================================================================== --- stable/7/sys/netinet/ip_carp.c Fri May 8 23:47:49 2009 (r191928) +++ stable/7/sys/netinet/ip_carp.c Sat May 9 00:35:38 2009 (r191929) @@ -1534,7 +1534,7 @@ carp_set_addr(struct carp_softc *sc, str TAILQ_FOREACH(vr, &cif->vhif_vrs, sc_list) if (vr != sc && vr->sc_vhid == sc->sc_vhid) { CARP_UNLOCK(cif); - error = EINVAL; + error = EEXIST; goto cleanup; } }