提交 a9d1958b 编写于 作者: R Richard Weinberger

hostfs: hostfs_open: Reset open flags upon each retry

...otherwise we might end up with an incorrect mode mode.
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 112a5da7
......@@ -315,6 +315,8 @@ static int hostfs_open(struct inode *ino, struct file *file)
mode |= HOSTFS_I(ino)->mode;
retry:
r = w = 0;
if (mode & FMODE_READ)
r = 1;
if (mode & FMODE_WRITE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册