svn commit: r190085 - in stable/6/sys: . boot/i386/libi386 contrib/pf dev/cxgb

John Baldwin jhb at FreeBSD.org
Thu Mar 19 09:55:45 PDT 2009


Author: jhb
Date: Thu Mar 19 16:55:42 2009
New Revision: 190085
URL: http://svn.freebsd.org/changeset/base/190085

Log:
  MFC: Fix uninitialized pointer dereference.

Modified:
  stable/6/sys/   (props changed)
  stable/6/sys/boot/i386/libi386/devicename.c
  stable/6/sys/contrib/pf/   (props changed)
  stable/6/sys/dev/cxgb/   (props changed)

Modified: stable/6/sys/boot/i386/libi386/devicename.c
==============================================================================
--- stable/6/sys/boot/i386/libi386/devicename.c	Thu Mar 19 16:55:26 2009	(r190084)
+++ stable/6/sys/boot/i386/libi386/devicename.c	Thu Mar 19 16:55:42 2009	(r190085)
@@ -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;


More information about the svn-src-all mailing list