diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-05-17 04:43:46 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-05-21 00:32:19 -0700 |
commit | de1fbd0fc7d81d9c6f2091a3c94e3dc02d0a3577 (patch) | |
tree | d0b0f1036f9e6fbfecaa010854be33541c85c98c | |
parent | 857c458fe1903ded0b6b7b444942f4f996223460 (diff) |
cluster/afr: Don't dereference fd ptr - it might be NULL due to a failed call.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 914 ([3.0.4] Crash in afr_opendir_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=914
-rw-r--r-- | xlators/cluster/afr/src/afr-dir-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c index 92e23659f32..a9b44579b13 100644 --- a/xlators/cluster/afr/src/afr-dir-read.c +++ b/xlators/cluster/afr/src/afr-dir-read.c @@ -239,7 +239,7 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie, if (local->op_ret == 0) { ret = afr_fd_ctx_set (this, local->fd); - if (!afr_is_opendir_done (this, fd->inode)) { + if (!afr_is_opendir_done (this, local->fd->inode)) { /* * This is the first opendir on this inode. We need |