]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ubi: correct the calculation of fastmap size
authorZhang Yi <yi.zhang@huawei.com>
Tue, 20 Feb 2024 02:49:03 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:21 +0000 (15:28 +0200)
commit1a3487cdf8dc1f60dcbf66775cd68597c31bac22
treefd41296bc1501f41cf4c2b25765b8d28a12ee646
parentd1b505c988b711673d6a2de35222028be081d0d1
ubi: correct the calculation of fastmap size

[ Upstream commit 7f174ae4f39e8475adcc09d26c5a43394689ad6c ]

Now that the calculation of fastmap size in ubi_calc_fm_size() is
incorrect since it miss each user volume's ubi_fm_eba structure and the
Internal UBI volume info. Let's correct the calculation.

Cc: stable@vger.kernel.org
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/ubi/fastmap.c