commit | a9d1958b4b9a688becceda44938baac99a62fbd7 | [log] [tgz] |
---|---|---|
author | Richard Weinberger <richard@nod.at> | Wed Mar 04 22:39:48 2015 +0100 |
committer | Richard Weinberger <richard@nod.at> | Thu Mar 26 23:27:52 2015 +0100 |
tree | 33cfa12dcf5033b16ad5c5cf92ee9ad855a2fa7c | |
parent | 112a5da717f86250bc6be2c63e7af174be7c5507 [diff] |
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>
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 8bbceae..80ced3d 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c
@@ -315,6 +315,8 @@ mode |= HOSTFS_I(ino)->mode; retry: + r = w = 0; + if (mode & FMODE_READ) r = 1; if (mode & FMODE_WRITE)