diff options
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/eba.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 0db8dc7af8a0..8aff9385613f 100644 --- 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, | |||
861 | vid_hdr->data_pad = cpu_to_be32(vol->data_pad); | 861 | vid_hdr->data_pad = cpu_to_be32(vol->data_pad); |
862 | 862 | ||
863 | crc = crc32(UBI_CRC32_INIT, buf, len); | 863 | crc = crc32(UBI_CRC32_INIT, buf, len); |
864 | vid_hdr->vol_type = UBI_VID_STATIC; | 864 | vid_hdr->vol_type = UBI_VID_DYNAMIC; |
865 | vid_hdr->data_size = cpu_to_be32(len); | 865 | vid_hdr->data_size = cpu_to_be32(len); |
866 | vid_hdr->copy_flag = 1; | 866 | vid_hdr->copy_flag = 1; |
867 | vid_hdr->data_crc = cpu_to_be32(crc); | 867 | vid_hdr->data_crc = cpu_to_be32(crc); |