Prevent nump NULL pointer dereference in bmap_getlbns()
This commit is contained in:
parent
f9c4096237
commit
60ab143617
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user