Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;