forked from Minki/linux
hostfs: hostfs_open: Reset open flags upon each retry
...otherwise we might end up with an incorrect mode mode. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
112a5da717
commit
a9d1958b4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user