diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index 87bdf0f4cba117fc7c987080b9b901d7614ebfd3..902a7dd10e5c45fbc496cfbb4a9c39f1ca4bb417 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c @@ -285,10 +285,8 @@ static int jffs2_fill_super(struct super_block *sb, void *data, int silent) sb->s_fs_info = c; ret = jffs2_parse_options(c, data); - if (ret) { - kfree(c); + if (ret) return -EINVAL; - } /* Initialize JFFS2 superblock locks, the further initialization will * be done later */