Merge "common: ubi: fix ubi_initialized flag handling"

This commit is contained in:
Linux Build Service Account 2021-08-13 11:40:15 -07:00 committed by Gerrit - the friendly Code Review server
commit 30c94d9ef4

View file

@ -486,6 +486,8 @@ int ubi_part(char *part_name, const char *vid_header_offset)
if (ubi_initialized) {
ubi_exit();
del_mtd_partitions(ubi_dev.mtd_info);
put_mtd_device(ubi_dev.mtd_info);
ubi_initialized = 0;
}
/*