mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Prevent nump NULL pointer dereference in bmap_getlbns()
This commit is contained in:
parent
4ed4f4cf95
commit
6297d5d6f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240358
|
@ -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…
Reference in a new issue