diff options
author | Richard Weinberger <richard@nod.at> | 2014-09-30 00:20:46 +0200 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2015-09-01 14:46:37 -0700 |
commit | 8ef9b857da2a70350afd06c525323622533f001d (patch) | |
tree | 3e42ea097db2f803b483282afb3bf37d41177718 /drivers/mtd | |
parent | fb242bb2dd3466848a3abb1be5b4f9ce70671870 (diff) |
UBI: Fastmap: Calc fastmap size correctly
We need to add fm_sb too.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Tanya Brokhman <tlinder@codeaurora.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/fastmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c index 3f4666ba9d2..40764363b3d 100644 --- a/drivers/mtd/ubi/fastmap.c +++ b/drivers/mtd/ubi/fastmap.c @@ -26,7 +26,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)) + \ |