diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-19 13:54:36 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-19 13:54:36 -0500 |
commit | 8bc5191b261c4fd9a5e9052cebe04ce2ef05f2e7 (patch) | |
tree | e6cbfb89710d748909156c3f728fe3e1bf613816 /fs/qnx4/inode.c | |
parent | 4134bf81ffd962f4de9bbeca55130d2238bd3698 (diff) |
qnx4: don't leak ->BitMap on late failure exits
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/qnx4/inode.c')
-rw-r--r-- | fs/qnx4/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 3fd121c7c30a..6b009548d2e0 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
@@ -256,7 +256,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent) | |||
256 | if (IS_ERR(root)) { | 256 | if (IS_ERR(root)) { |
257 | printk(KERN_ERR "qnx4: get inode failed\n"); | 257 | printk(KERN_ERR "qnx4: get inode failed\n"); |
258 | ret = PTR_ERR(root); | 258 | ret = PTR_ERR(root); |
259 | goto out; | 259 | goto outb; |
260 | } | 260 | } |
261 | 261 | ||
262 | ret = -ENOMEM; | 262 | ret = -ENOMEM; |
@@ -269,6 +269,8 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent) | |||
269 | 269 | ||
270 | outi: | 270 | outi: |
271 | iput(root); | 271 | iput(root); |
272 | outb: | ||
273 | kfree(qs->BitMap); | ||
272 | out: | 274 | out: |
273 | brelse(bh); | 275 | brelse(bh); |
274 | outnobh: | 276 | outnobh: |