shell: mufs: fix an issue when claiming ownership of flash device for mufs unmount

This commit is contained in:
S.J.R. van Schaik 2017-06-16 16:37:53 +02:00
parent b0548df204
commit 7013192b2e

View file

@ -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;