diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-05-17 04:42:46 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-05-21 00:31:37 -0700 |
commit | 86ee9d3e144d2371e5ae7edf663916b8da6d2616 (patch) | |
tree | 666a04e1dd6af0a3ecb8d4009095c5b5343141c6 /xlators | |
parent | 8734ba0fc9e066065dfd23f8f6da12f2fd89e80e (diff) | |
download | glusterfs-86ee9d3e144d2371e5ae7edf663916b8da6d2616.tar.gz glusterfs-86ee9d3e144d2371e5ae7edf663916b8da6d2616.tar.xz glusterfs-86ee9d3e144d2371e5ae7edf663916b8da6d2616.zip |
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
Diffstat (limited to 'xlators')
-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 0f9bdf59ea..e23aa414fe 100644 --- a/xlators/cluster/afr/src/afr-dir-read.c +++ b/xlators/cluster/afr/src/afr-dir-read.c @@ -240,7 +240,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 |