mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
UBI: Fix error path in scan_pool()
We have to set "ret", not "err" in case of an error. Reported-and-tested-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
parent
fb10e4d418
commit
f240dca8f2
@ -428,7 +428,7 @@ static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai,
|
||||
if (be32_to_cpu(ech->image_seq) != ubi->image_seq) {
|
||||
ubi_err("bad image seq: 0x%x, expected: 0x%x",
|
||||
be32_to_cpu(ech->image_seq), ubi->image_seq);
|
||||
err = UBI_BAD_FASTMAP;
|
||||
ret = UBI_BAD_FASTMAP;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user