projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d4374
)
Fix a leak in affs_fill_super()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 24 Jan 2010 04:38:27 +0000
(23:38 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 9 Feb 2010 12:50:46 +0000
(
04:50
-0800)
commit
afc70ed05a07bfe171f7a5b8fdc80bdb073d314f
upstream.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/affs/super.c
patch
|
blob
|
history
diff --git
a/fs/affs/super.c
b/fs/affs/super.c
index 104fdcb3a7fca3997d8740e2ed2d14ba283338c7..b2a5958c619174e32bc7544498ec1b2680dc40bf 100644
(file)
--- a/
fs/affs/super.c
+++ b/
fs/affs/super.c
@@
-316,6
+316,8
@@
static int affs_fill_super(struct super_block *sb, void *data, int silent)
&blocksize,&sbi->s_prefix,
sbi->s_volume, &mount_flags)) {
printk(KERN_ERR "AFFS: Error parsing options\n");
+ kfree(sbi->s_prefix);
+ kfree(sbi);
return -EINVAL;
}
/* N.B. after this point s_prefix must be released */