shell: mufs: fix an issue when claiming ownership of flash device for mufs unmount
This commit is contained in:
parent
b0548df204
commit
7013192b2e
1 changed files with 4 additions and 4 deletions
|
@ -70,11 +70,11 @@ static void do_mufs_unmount(const char *s)
|
|||
if (!mufs)
|
||||
return;
|
||||
|
||||
if (flash) {
|
||||
if (flash)
|
||||
flash_release(flash);
|
||||
flash = mufs->dev;
|
||||
mufs->dev = NULL;
|
||||
}
|
||||
|
||||
flash = mufs->dev;
|
||||
mufs->dev = NULL;
|
||||
|
||||
mufs_unmount(mufs);
|
||||
mufs = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue