svn commit: r240358 - head/sys/fs/nandfs
Kevin Lo
kevlo at FreeBSD.org
Tue Sep 11 09:38:33 UTC 2012
Author: kevlo
Date: Tue Sep 11 09:38:32 2012
New Revision: 240358
URL: http://svn.freebsd.org/changeset/base/240358
Log:
Prevent nump NULL pointer dereference in bmap_getlbns()
Modified:
head/sys/fs/nandfs/bmap.c
Modified: head/sys/fs/nandfs/bmap.c
==============================================================================
--- head/sys/fs/nandfs/bmap.c Tue Sep 11 08:49:22 2012 (r240357)
+++ head/sys/fs/nandfs/bmap.c Tue Sep 11 09:38:32 2012 (r240358)
@@ -548,7 +548,8 @@ bmap_getlbns(struct nandfs_node *node, n
DPRINTF(BMAP, ("%s: node %p bn=%jx mnindir=%zd enter\n", __func__,
node, bn, MNINDIR(fsdev)));
- *nump = 0;
+ if (nump)
+ *nump = 0;
numlevels = 0;
realbn = bn;
More information about the svn-src-head
mailing list