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:
@@ -315,6 +315,8 @@ static int hostfs_open(struct inode *ino, struct file *file)
|
|||||||
mode |= HOSTFS_I(ino)->mode;
|
mode |= HOSTFS_I(ino)->mode;
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
|
r = w = 0;
|
||||||
|
|
||||||
if (mode & FMODE_READ)
|
if (mode & FMODE_READ)
|
||||||
r = 1;
|
r = 1;
|
||||||
if (mode & FMODE_WRITE)
|
if (mode & FMODE_WRITE)
|
||||||
|
|||||||
Reference in New Issue
Block a user