summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 6d39b1f5a86..3b4c6c68c97 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -626,7 +626,7 @@ fuse_fd_inherit_directio (xlator_t *this, fd_t *fd, struct fuse_open_out *foo)
tmp_fd = fd_lookup (fd->inode, 0);
if (tmp_fd) {
- tmp_fdctx = fuse_fd_ctx_get (this, fd);
+ tmp_fdctx = fuse_fd_ctx_get (this, tmp_fd);
if (tmp_fdctx) {
foo->open_flags &= ~FOPEN_DIRECT_IO;
foo->open_flags |= (tmp_fdctx->open_flags