提交 70d9e384 编写于 作者: D Davidlohr Bueso 提交者: Bob Copeland

omfs: fix memory leak

In the error path of omfs_fill_super(), the FS super block info
(sbi) is not being freed.  Correct this.
Signed-off-by: NDavidlohr Bueso <dave@gnu.org>
Signed-off-by: NBob Copeland <me@bobcopeland.com>
上级 815c4163
......@@ -529,6 +529,8 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
out_brelse_bh:
brelse(bh);
end:
if (ret)
kfree(sbi);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册