From 71897c714f570ae9a64ad0809fd890d1d5265b23 Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Wed, 8 Apr 2015 12:19:18 +0530 Subject: dht : null dereference coverity fix Change-Id: I700e7ebdfe4929a6d74406ea081059bdddcf7a79 BUG: 789278 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/9628 Reviewed-by: N Balachandran Tested-by: Gluster Build System Reviewed-by: Humble Devassy Chirammal Reviewed-by: Shyamsundar Ranganathan --- xlators/cluster/dht/src/dht-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index c91c7eeec48..b85edde09a9 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1971,7 +1971,7 @@ out: * from each of the subvolume. See dht_iatt_merge for reference. */ - if (!op_ret && local->loc.parent) { + if (!op_ret && local && local->loc.parent) { dht_inode_ctx_time_update (local->loc.parent, this, postparent, 1); } -- cgit