Module Name:    src
Committed By:   maxv
Date:           Wed Jul  9 06:04:16 UTC 2014

Modified Files:
        src/usr.sbin/makefs/msdos: msdosfs_vfsops.c

Log Message:
What a terrible use-after-free


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/makefs/msdos/msdosfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/msdos/msdosfs_vfsops.c
diff -u src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.7 src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.8
--- src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.7	Wed Jan 30 19:19:19 2013
+++ src/usr.sbin/makefs/msdos/msdosfs_vfsops.c	Wed Jul  9 06:04:16 2014
@@ -50,7 +50,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.7 2013/01/30 19:19:19 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.8 2014/07/09 06:04:16 maxv Exp $");
 
 #include <sys/param.h>
 
@@ -407,7 +407,7 @@ error_exit:
 		free(pmp);
 	}
 	errno = error;
-	return pmp;
+	return NULL;
 }
 
 int

Reply via email to