Commit 86af10ca authored by Karl Beldan's avatar Karl Beldan Committed by Stefan Roese

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: 's avatarKarl Beldan <karl.beldan@gmail.com>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: 's avatarStefan Roese <sr@denx.de>
parent d03161b4
......@@ -1045,6 +1045,7 @@ out_version:
out_class:
class_destroy(ubi_class);
out:
mtd_devs = 0;
ubi_err("UBI error: cannot initialize UBI, error %d", err);
return err;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment