!20 【轻量级 PR】:Bugfix for fatfs double lock

Merge pull request !20 from evanscjv/N/A
This commit is contained in:
openharmony_ci 2020-10-16 14:04:02 +08:00 committed by Gitee
commit 37eba37901
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);