mufs: release flash device if ownership not claimed
This commit is contained in:
parent
84468fd761
commit
c2700bd31e
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ void mufs_unmount(struct mufs *fs)
|
|||
if (!fs)
|
||||
return;
|
||||
|
||||
if (fs->dev)
|
||||
flash_release(fs->dev);
|
||||
|
||||
free(fs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue