提交 afc70ed0 编写于 作者: A Al Viro

Fix a leak in affs_fill_super()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 b04da8bf
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册