Commit ceeba0030844b2e84ce4e47f4be7ad347cd1e827

Authored by Peter Horton
Committed by Wolfgang Denk
1 parent b8c4eea56b

UBI: initialise update marker

UBI: initialise update marker

The in kernel copy of a volume's update marker is not initialised from the
volume table. This means that volumes where an update was unfinnished will
not be treated as "forbidden to use". This is basically that the update
functionality was broken.

Signed-off-by: Peter Horton <zero@colonel-panic.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Stefan Roese <sr@denx.de>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/mtd/ubi/vtbl.c
... ... @@ -520,6 +520,7 @@
520 520 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
521 521 vol->alignment = be32_to_cpu(vtbl[i].alignment);
522 522 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
  523 + vol->upd_marker = vtbl[i].upd_marker;
523 524 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ?
524 525 UBI_DYNAMIC_VOLUME : UBI_STATIC_VOLUME;
525 526 vol->name_len = be16_to_cpu(vtbl[i].name_len);