mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "common: ubi: fix ubi_initialized flag handling"
This commit is contained in:
commit
30c94d9ef4
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue