From owner-svn-src-all@FreeBSD.ORG Thu Mar 19 16:55:27 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CEAE106568E; Thu, 19 Mar 2009 16:55:27 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3A06A8FC0A; Thu, 19 Mar 2009 16:55:27 +0000 (UTC) (envelope-from jhb@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 n2JGtRYh069719; Thu, 19 Mar 2009 16:55:27 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2JGtRjm069718; Thu, 19 Mar 2009 16:55:27 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200903191655.n2JGtRjm069718@svn.freebsd.org> From: John Baldwin Date: Thu, 19 Mar 2009 16:55:27 +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: r190084 - in stable/7/sys: . boot/i386/libi386 contrib/pf dev/ath/ath_hal dev/cxgb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 16:55:28 -0000 Author: jhb Date: Thu Mar 19 16:55:26 2009 New Revision: 190084 URL: http://svn.freebsd.org/changeset/base/190084 Log: MFC: Fix uninitialized pointer dereference. Modified: stable/7/sys/ (props changed) stable/7/sys/boot/i386/libi386/devicename.c stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) Modified: stable/7/sys/boot/i386/libi386/devicename.c ============================================================================== --- stable/7/sys/boot/i386/libi386/devicename.c Thu Mar 19 16:44:37 2009 (r190083) +++ stable/7/sys/boot/i386/libi386/devicename.c Thu Mar 19 16:55:26 2009 (r190084) @@ -150,6 +150,8 @@ i386_parsedev(struct i386_devdesc **dev, cp++; } } + } else { + cp = np; } if (*cp && (*cp != ':')) { err = EINVAL; @@ -173,6 +175,8 @@ i386_parsedev(struct i386_devdesc **dev, err = EUNIT; goto fail; } + } else { + cp = np; } if (*cp && (*cp != ':')) { err = EINVAL;