Bugfix for fatfs double lock

This commit is contained in:
evanscjv 2020-10-16 10:16:14 +08:00 committed by Gitee
parent 3425568551
commit 58260bf5fe
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ int fatfs_unbind(void *handle, struct inode **blkdriver)
SETUP_SEARCH(&desc, g_fatVirPart.virtualinfo.devpartpath, false);
FatfsVirtLock();
result = FatFsUnbindVirPart(fat);
FatfsVirtLock();
FatfsVirtUnlock();
if (result == FR_OK) {
part = los_part_find(DiskDev[index]);
(void)inode_find(&desc);