OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
443b39c
)
UBI: Fastmap: Calc fastmap size correctly
author
Richard Weinberger
<richard@nod.at>
Mon, 29 Sep 2014 22:20:46 +0000
(
00:20
+0200)
committer
Artem Bityutskiy
<artem.bityutskiy@linux.intel.com>
Fri, 3 Oct 2014 14:33:28 +0000
(17:33 +0300)
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>
drivers/mtd/ubi/fastmap.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/fastmap.c
b/drivers/mtd/ubi/fastmap.c
index
c701369
..
cfd5b5e
100644
(file)
--- a/
drivers/mtd/ubi/fastmap.c
+++ b/
drivers/mtd/ubi/fastmap.c
@@
-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)) + \