提交 6a9012c2 编写于 作者: O openharmony_ci 提交者: Gitee

!7 Fix issue of "open device vnode may cause deadlock

Merge pull request !7 from ysy4tc3/dev
......@@ -192,8 +192,8 @@ int fp_open(char *fullpath, int oflags, mode_t mode)
}
#ifdef LOSCFG_FS_VFS_BLOCK_DEVICE
if (vnode->type == VNODE_TYPE_BLK) {
fd = block_proxy(fullpath, oflags);
VnodeDrop();
fd = block_proxy(fullpath, oflags);
if (fd < 0)
{
ret = fd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册