ubifs: Fix a memleak after dumping authentication mount options
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 29 Sep 2020 12:45:29 +0000 (20:45 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 11 Oct 2020 20:05:49 +0000 (22:05 +0200)
commit47f6d9ce45b03a40c34b668a9884754c58122b39
tree57af4dd3f05185bcd1d762fe1f5211d5a83b6bb0
parentb30e2238b7ff0c3cbe27f7bf024d73e17842f5fc
ubifs: Fix a memleak after dumping authentication mount options

Fix a memory leak after dumping authentication mount options in error
handling branch.

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