ubifs: Don't parse authentication mount options in remount process
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 29 Sep 2020 12:45:30 +0000 (20:45 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 11 Oct 2020 20:05:49 +0000 (22:05 +0200)
commitbb674a4d4de1032837fcbf860a63939e66f0b7ad
tree4f9a45c58a77a720a30e1d9ed184a07164d76166
parent47f6d9ce45b03a40c34b668a9884754c58122b39
ubifs: Don't parse authentication mount options in remount process

There is no need to dump authentication options while remounting,
because authentication initialization can only be doing once in
the first mount process. Dumping authentication mount options in
remount process may cause memory leak if UBIFS has already been
mounted with old authentication mount options.

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