From cf403ff73213bec7ce4781336e89a5bcfd9a167c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 9 Sep 2009 12:18:55 +0000 Subject: protocol/server: server_stub_resume should check for failure of lookup when oldloc.parent is NULL. Signed-off-by: Anand V. Avati BUG: 215 (crash on ib-verbs in 2.0.6-rc4) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=215 --- xlators/protocol/server/src/server-protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 3bfffd7006b..d8fafe43f9e 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -2866,7 +2866,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 " -- cgit