diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-01-23 23:38:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-02-09 04:50:46 -0800 |
commit | 703c300c7415c0a2f25dbd7d2f8773a5abd84099 (patch) | |
tree | ef6f13e350a5ce90e8ee6803d31d693deaeb7f73 /fs | |
parent | 61d4374b51386dd40c03fd15df5a7f97347de688 (diff) |
Fix a leak in affs_fill_super()
commit afc70ed05a07bfe171f7a5b8fdc80bdb073d314f upstream.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/affs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 104fdcb3a7fc..b2a5958c6191 100644 --- 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 */ |