Commit 3dc948da authored by Holger Brunck's avatar Holger Brunck Committed by Artem Bityutskiy

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: default avatarHolger Brunck <holger.brunck@keymile.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent c8cc4525
...@@ -781,7 +781,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment