projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ded48
)
UBI: fix bug in atomic_leb_change()
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 4 Jul 2007 13:16:51 +0000
(16:16 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:56:24 +0000
(16:56 +0300)
atomic_leb_change() is only allowed for dynamic volumes, so set
the volume type correctly.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/eba.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/eba.c
b/drivers/mtd/ubi/eba.c
index 0db8dc7af8a0107f98152cc66b20bb29b6c7332b..8aff9385613f36601316ce0b9df2a4b410a2358a 100644
(file)
--- a/
drivers/mtd/ubi/eba.c
+++ b/
drivers/mtd/ubi/eba.c
@@
-861,7
+861,7
@@
int ubi_eba_atomic_leb_change(struct ubi_device *ubi, int vol_id, int lnum,
vid_hdr->data_pad = cpu_to_be32(vol->data_pad);
crc = crc32(UBI_CRC32_INIT, buf, len);
- vid_hdr->vol_type = UBI_VID_
STAT
IC;
+ vid_hdr->vol_type = UBI_VID_
DYNAM
IC;
vid_hdr->data_size = cpu_to_be32(len);
vid_hdr->copy_flag = 1;
vid_hdr->data_crc = cpu_to_be32(crc);