Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2009 16:55:27 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r190084 - in stable/7/sys: . boot/i386/libi386 contrib/pf dev/ath/ath_hal dev/cxgb
Message-ID:  <200903191655.n2JGtRjm069718@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903191655.n2JGtRjm069718>