From 31f0f48130fb68908413e710d960c5d7c6476b45 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 9 Sep 2009 12:15:11 +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 09b35c44f03..9306a9232bd 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 " -- cgit