mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
Fix "ubi part" cmd re-entrancy
Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command) reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path. Signed-off-by: Karl Beldan <karl.beldan@gmail.com> Cc: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
d03161b455
commit
86af10cac4
@ -1045,6 +1045,7 @@ out_version:
|
|||||||
out_class:
|
out_class:
|
||||||
class_destroy(ubi_class);
|
class_destroy(ubi_class);
|
||||||
out:
|
out:
|
||||||
|
mtd_devs = 0;
|
||||||
ubi_err("UBI error: cannot initialize UBI, error %d", err);
|
ubi_err("UBI error: cannot initialize UBI, error %d", err);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user