aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-07-22 12:26:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-07-22 12:26:13 -0400
commit61fe087059614226978f4d7bb36da26cb2d28f9f (patch)
tree95558d4dfa3409bfedcac17f7a899082b37ad334 /drivers
parent71c4c8b7c3bdeccef4f478c643a9ff382ec07241 (diff)
parent3dc948da783e713cd3dc8bbd8f293f8795af8f06 (diff)
Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6
* 'linux-next' of git://git.infradead.org/ubi-2.6: UBI: fix bug in image sequence number handling UBI: gluebi: initialize ubi_num field
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/ubi/gluebi.c1
-rw-r--r--drivers/mtd/ubi/scan.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/gluebi.c b/drivers/mtd/ubi/gluebi.c
index 95aaac03f938..b5e478fa2661 100644
--- a/drivers/mtd/ubi/gluebi.c
+++ b/drivers/mtd/ubi/gluebi.c
@@ -332,6 +332,7 @@ static int gluebi_create(struct ubi_device_info *di,
332 } 332 }
333 333
334 gluebi->vol_id = vi->vol_id; 334 gluebi->vol_id = vi->vol_id;
335 gluebi->ubi_num = vi->ubi_num;
335 mtd->type = MTD_UBIVOLUME; 336 mtd->type = MTD_UBIVOLUME;
336 if (!di->ro_mode) 337 if (!di->ro_mode)
337 mtd->flags = MTD_WRITEABLE; 338 mtd->flags = MTD_WRITEABLE;
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index f60895ee0aeb..a423131b6171 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -781,7 +781,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si,
781 return -EINVAL; 781 return -EINVAL;
782 } 782 }
783 783
784 image_seq = be32_to_cpu(ech->ec); 784 image_seq = be32_to_cpu(ech->image_seq);
785 if (!si->image_seq_set) { 785 if (!si->image_seq_set) {
786 ubi->image_seq = image_seq; 786 ubi->image_seq = image_seq;
787 si->image_seq_set = 1; 787 si->image_seq_set = 1;