ocfs2: ocfs2_mount_volume does cleanup job before return error
[ Upstream commit 0737e01d ] After this patch, when error, ocfs2_fill_super doesn't take care to release resources which are allocated in ocfs2_mount_volume. Link: https://lkml.kernel.org/r/20220424130952.2436-5-heming.zhao@suse.com Signed-off-by:Heming Zhao <heming.zhao@suse.com> Reviewed-by:
Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Jun Piao <piaojun@huawei.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Mark Fasheh <mark@fasheh.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Stable-dep-of: ce2fcf15 ("ocfs2: fix memory leak in ocfs2_mount_volume()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment