Skip to content

Commit

Permalink
qnx4: don't leak ->BitMap on late failure exits
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 19, 2012
1 parent 4134bf8 commit 8bc5191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/qnx4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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:
Expand Down

0 comments on commit 8bc5191

Please sign in to comment.