Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=84a925806210e002fab29966c09b9c92f382a79d
Commit:     84a925806210e002fab29966c09b9c92f382a79d
Parent:     a6ded48e34f803fcbb42719cee452d1f18938ec7
Author:     Artem Bityutskiy <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 4 16:16:51 2007 +0300
Committer:  Artem Bityutskiy <[EMAIL PROTECTED]>
CommitDate: Wed Jul 18 16:56:24 2007 +0300

    UBI: fix bug in atomic_leb_change()
    
    atomic_leb_change() is only allowed for dynamic volumes, so set
    the volume type correctly.
    
    Signed-off-by: Artem Bityutskiy <[EMAIL PROTECTED]>
---
 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 0db8dc7..8aff938 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,
        vid_hdr->data_pad = cpu_to_be32(vol->data_pad);
 
        crc = crc32(UBI_CRC32_INIT, buf, len);
-       vid_hdr->vol_type = UBI_VID_STATIC;
+       vid_hdr->vol_type = UBI_VID_DYNAMIC;
        vid_hdr->data_size = cpu_to_be32(len);
        vid_hdr->copy_flag = 1;
        vid_hdr->data_crc = cpu_to_be32(crc);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to