mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 08:56:48 +07:00
qnx4: don't leak ->BitMap on late failure exits
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4134bf81ff
commit
8bc5191b26
@ -256,7 +256,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
|
|||||||
if (IS_ERR(root)) {
|
if (IS_ERR(root)) {
|
||||||
printk(KERN_ERR "qnx4: get inode failed\n");
|
printk(KERN_ERR "qnx4: get inode failed\n");
|
||||||
ret = PTR_ERR(root);
|
ret = PTR_ERR(root);
|
||||||
goto out;
|
goto outb;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
@ -269,6 +269,8 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
|
|||||||
|
|
||||||
outi:
|
outi:
|
||||||
iput(root);
|
iput(root);
|
||||||
|
outb:
|
||||||
|
kfree(qs->BitMap);
|
||||||
out:
|
out:
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
outnobh:
|
outnobh:
|
||||||
|
Loading…
Reference in New Issue
Block a user