dect
/
linux-2.6
Archived
13
0
Fork 0

qnx4: don't leak ->BitMap on late failure exits

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-01-19 13:54:36 -05:00
parent 4134bf81ff
commit 8bc5191b26
1 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
if (IS_ERR(root)) {
printk(KERN_ERR "qnx4: get inode failed\n");
ret = PTR_ERR(root);
goto out;
goto outb;
}
ret = -ENOMEM;
@ -269,6 +269,8 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
outi:
iput(root);
outb:
kfree(qs->BitMap);
out:
brelse(bh);
outnobh: