Bugfix for fatfs double lock
This commit is contained in:
parent
3425568551
commit
58260bf5fe
|
@ -490,7 +490,7 @@ int fatfs_unbind(void *handle, struct inode **blkdriver)
|
||||||
SETUP_SEARCH(&desc, g_fatVirPart.virtualinfo.devpartpath, false);
|
SETUP_SEARCH(&desc, g_fatVirPart.virtualinfo.devpartpath, false);
|
||||||
FatfsVirtLock();
|
FatfsVirtLock();
|
||||||
result = FatFsUnbindVirPart(fat);
|
result = FatFsUnbindVirPart(fat);
|
||||||
FatfsVirtLock();
|
FatfsVirtUnlock();
|
||||||
if (result == FR_OK) {
|
if (result == FR_OK) {
|
||||||
part = los_part_find(DiskDev[index]);
|
part = los_part_find(DiskDev[index]);
|
||||||
(void)inode_find(&desc);
|
(void)inode_find(&desc);
|
||||||
|
|
Loading…
Reference in New Issue