projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4134bf8
)
qnx4: don't leak ->BitMap on late failure exits
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 19 Jan 2012 18:54:36 +0000
(13:54 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 19 Jan 2012 18:54:36 +0000
(13:54 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/qnx4/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/qnx4/inode.c
b/fs/qnx4/inode.c
index 3fd121c7c30a798b1915b3837564b07f7f714f07..6b009548d2e0380dbbbd8c061570f2805371bf4d 100644
(file)
--- 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)
if (IS_ERR(root)) {
printk(KERN_ERR "qnx4: get inode failed\n");
ret = PTR_ERR(root);
- goto out;
+ goto out
b
;
}
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: