diff options
-rw-r--r-- | xlators/cluster/ec/src/ec-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-helpers.c b/xlators/cluster/ec/src/ec-helpers.c index 64b010fc480..c998462655f 100644 --- a/xlators/cluster/ec/src/ec-helpers.c +++ b/xlators/cluster/ec/src/ec-helpers.c @@ -776,7 +776,7 @@ ec_fd_t * __ec_fd_get(fd_t * fd, xlator_t * xl) } /* Treat anonymous fd specially */ - if (fd->anonymous) { + if (fd->anonymous && ctx) { /* Mark the fd open for all subvolumes. */ ctx->open = -1; /* Try to populate ctx->loc with fd->inode information. */ |