Prevent nump NULL pointer dereference in bmap_getlbns()

This commit is contained in:
Kevin Lo 2012-09-11 09:38:32 +00:00
parent 4ed4f4cf95
commit 6297d5d6f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240358

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;