ubifs: mount_ubifs: Release authentication resource in error handling path
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 29 Sep 2020 12:45:31 +0000 (20:45 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 11 Oct 2020 20:05:50 +0000 (22:05 +0200)
commite2a05cc7f8229e150243cdae40f2af9021d67a4a
tree422e9a252dfa791cc1a1c8bc84479e6a0076d15d
parentbb674a4d4de1032837fcbf860a63939e66f0b7ad
ubifs: mount_ubifs: Release authentication resource in error handling path

Release the authentication related resource in some error handling
branches in mount_ubifs().

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Cc: <stable@vger.kernel.org> # 4.20+
Fixes: d8a22773a12c6d7 ("ubifs: Enable authentication support")
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c