projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 8bbceae5ed03f3de4efaa4e3d7835415f232fd43..80ced3dc84ae227c3fef9ce1e0cd4c666aa7610a 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)