Commit a9d1958b authored by Richard Weinberger's avatar Richard Weinberger

hostfs: hostfs_open: Reset open flags upon each retry

...otherwise we might end up with an incorrect mode mode.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment