UBI: Fastmap: Calc fastmap size correctly

We need to add fm_sb too.

Signed-off-by: Richard Weinberger <[email protected]>
Reviewed-by: Tanya Brokhman <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
Richard Weinberger 2014-09-30 00:20:46 +02:00 • committed by Artem Bityutskiy
commit 91401a3403

View file

@ -24,7 +24,8 @@ size_t ubi_calc_fm_size(struct ubi_device *ubi)
{
size_t size;
size = sizeof(struct ubi_fm_hdr) + \
size = sizeof(struct ubi_fm_sb) + \
sizeof(struct ubi_fm_hdr) + \
sizeof(struct ubi_fm_scan_pool) + \
sizeof(struct ubi_fm_scan_pool) + \
(ubi->peb_count * sizeof(struct ubi_fm_ec)) + \