projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112a5da
)
hostfs: hostfs_open: Reset open flags upon each retry
author
Richard Weinberger
<richard@nod.at>
Wed, 4 Mar 2015 21:39:48 +0000
(22:39 +0100)
committer
Richard Weinberger
<richard@nod.at>
Thu, 26 Mar 2015 22:27:52 +0000
(23:27 +0100)
...otherwise we might end up with an incorrect mode mode.
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index
8bbceae
..
80ced3d
100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-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)