Bläddra i källkod

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
Linus Torvalds 16 år sedan
förälder
incheckning
61fe087059
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      drivers/mtd/ubi/gluebi.c
  2. 1 1
      drivers/mtd/ubi/scan.c

+ 1 - 0
drivers/mtd/ubi/gluebi.c

@@ -332,6 +332,7 @@ static int gluebi_create(struct ubi_device_info *di,
 	}
 	}
 
 
 	gluebi->vol_id = vi->vol_id;
 	gluebi->vol_id = vi->vol_id;
+	gluebi->ubi_num = vi->ubi_num;
 	mtd->type = MTD_UBIVOLUME;
 	mtd->type = MTD_UBIVOLUME;
 	if (!di->ro_mode)
 	if (!di->ro_mode)
 		mtd->flags = MTD_WRITEABLE;
 		mtd->flags = MTD_WRITEABLE;

+ 1 - 1
drivers/mtd/ubi/scan.c

@@ -781,7 +781,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si,
 			return -EINVAL;
 			return -EINVAL;
 		}
 		}
 
 
-		image_seq = be32_to_cpu(ech->ec);
+		image_seq = be32_to_cpu(ech->image_seq);
 		if (!si->image_seq_set) {
 		if (!si->image_seq_set) {
 			ubi->image_seq = image_seq;
 			ubi->image_seq = image_seq;
 			si->image_seq_set = 1;
 			si->image_seq_set = 1;