提交 67f9f750 编写于 作者: O openharmony_ci 提交者: Gitee

!192 format函数错误分支未释放锁

Merge pull request !192 from Far/fatfs
...@@ -78,6 +78,7 @@ int format(const char *dev, int sectors, int option) ...@@ -78,6 +78,7 @@ int format(const char *dev, int sectors, int option)
} }
err = fatfs_mkfs(device, sectors, option); err = fatfs_mkfs(device, sectors, option);
if (err < 0) { if (err < 0) {
VnodeDrop();
set_errno(-err); set_errno(-err);
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册