]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99a65987b28b0fe099825e76936f9dd64bf382c6
tree4f9a45c58a77a720a30e1d9ed184a07164d76166
parent9cc0df0ac0e17d64ef34ccb2cd0ee8fb163a750e
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: ce072c0b4834ecb ("ubifs: Enable authentication support")
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c