]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: ocfs2_mount_volume does cleanup job before return error
authorHeming Zhao via Ocfs2-devel <ocfs2-devel@oss.oracle.com>
Fri, 29 Apr 2022 21:37:58 +0000 (14:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:56 +0000 (11:40 +0100)
commitf8010c191e91841e62c6e03708c0e8f75ceb5f45
tree350f1cb9b404ed3b9c4f8f22fe674088c6f029a7
parent4b8a4f8fbbda5e90e05c81aada6a69ff855905a9
ocfs2: ocfs2_mount_volume does cleanup job before return error

[ Upstream commit 3650e90913621cbede2b6d6fe2b3fa905754e2ae ]

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: ef0adae72907 ("ocfs2: fix memory leak in ocfs2_mount_volume()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ocfs2/super.c