Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Cc: stable@kernel.org

authored by

Peter Horton and committed by
Artem Bityutskiy
ff998793 74d2e4f8

+1
+1
drivers/mtd/ubi/vtbl.c
··· 566 566 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); 567 567 vol->alignment = be32_to_cpu(vtbl[i].alignment); 568 568 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); 569 + vol->upd_marker = vtbl[i].upd_marker; 569 570 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? 570 571 UBI_DYNAMIC_VOLUME : UBI_STATIC_VOLUME; 571 572 vol->name_len = be16_to_cpu(vtbl[i].name_len);