summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-06-11 14:44:48 +0530
committerVijay Bellur <vbellur@redhat.com>2015-06-12 11:39:33 -0700
commitb9603a046116e7db29e16e7caed29018bff50f66 (patch)
tree30a86e38acd09eb1556b23a85fac1559bf9219ef /xlators/cluster/ec/src
parentb0edf64f91bf2afefc811c832babe9e3e6bdfbfe (diff)
cluster/ec: Prevent Null dereference in dht-rename
Change-Id: I3059f3b577f550c92fb77c6b6b44defd0584cd2e BUG: 1230647 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/11178 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src')
-rw-r--r--xlators/cluster/ec/src/ec-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c
index 6b7edfdecb1..e47297fb9ef 100644
--- a/xlators/cluster/ec/src/ec-common.c
+++ b/xlators/cluster/ec/src/ec-common.c
@@ -1143,7 +1143,7 @@ void ec_get_real_size(ec_lock_link_t *link)
ec_fop_data_t *fop;
dict_t *xdata;
- if (link->base == NULL) {
+ if (link->base == NULL || link->base->inode == NULL) {
return;
}