diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-09-09 12:15:11 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-13 22:10:22 -0700 |
commit | 31f0f48130fb68908413e710d960c5d7c6476b45 (patch) | |
tree | 3f1c33932ac3c6f2bf9838209d4430fbab76abe8 /xlators/protocol/server | |
parent | aedc8ae261095530e334788afb7191fa3a92e710 (diff) |
protocol/server: server_stub_resume should check for failure of lookup when oldloc.parent is NULL.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 215 (crash on ib-verbs in 2.0.6-rc4)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=215
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r-- | xlators/protocol/server/src/server-protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 09b35c44f..9306a9232 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -2837,7 +2837,8 @@ server_stub_resume (call_stub_t *stub, int32_t op_ret, int32_t op_errno, case GF_FOP_LINK: { - if (stub->args.link.oldloc.inode == NULL) { + if ((stub->args.link.oldloc.inode == NULL) + || (stub->args.link.oldloc.parent == NULL)) { if (op_ret < 0) { gf_log (stub->frame->this->name, GF_LOG_DEBUG, "%"PRId64": LINK (%s -> %s) on %s returning " |