aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2009-07-13 16:47:57 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-15 11:30:59 +0300
commit3dc948da783e713cd3dc8bbd8f293f8795af8f06 (patch)
tree2f3174ff961b6a08481d53149bd8791829b93f9b /drivers/mtd
parentc8cc452501572d4a81331179b00a9bdd5d2bfada (diff)
downloadkernel_samsung_smdk4412-3dc948da783e713cd3dc8bbd8f293f8795af8f06.zip
kernel_samsung_smdk4412-3dc948da783e713cd3dc8bbd8f293f8795af8f06.tar.gz
kernel_samsung_smdk4412-3dc948da783e713cd3dc8bbd8f293f8795af8f06.tar.bz2
UBI: fix bug in image sequence number handling
This patch fixes a bug in the image seq. number handling in the scanning level. The assignment of the image_seq was incorrect. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index f60895e..a423131 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,
return -EINVAL;
}
- image_seq = be32_to_cpu(ech->ec);
+ image_seq = be32_to_cpu(ech->image_seq);
if (!si->image_seq_set) {
ubi->image_seq = image_seq;
si->image_seq_set = 1;