Prevent nump NULL pointer dereference in bmap_getlbns()

This commit is contained in:
kevlo 2012-09-11 09:38:32 +00:00
parent f9c4096237
commit 60ab143617

View File

@ -548,7 +548,8 @@ bmap_getlbns(struct nandfs_node *node, nandfs_lbn_t bn, struct nandfs_indir *ap,
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;