diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-06-11 14:44:48 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-06-16 01:29:43 -0700 |
commit | 96e3426354bbd166c8c0224060132479c350aa2b (patch) | |
tree | 6810c64c60e67cd4bf8a14171fe537a2d8180f5d /xlators/cluster/ec/src/ec-common.c | |
parent | 26fcaa66b77334b878af51a2147d035ade50ef62 (diff) |
cluster/ec: Prevent Null dereference in dht-rename
Backport of http://review.gluster.com/11178
BUG: 1230653
Change-Id: I708d4d84b1341fb7cb515808836721735dc63f14
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/11179
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'xlators/cluster/ec/src/ec-common.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-common.c | 2 |
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 062754b2aba..05dd386ec65 100644 --- a/xlators/cluster/ec/src/ec-common.c +++ b/xlators/cluster/ec/src/ec-common.c @@ -1145,7 +1145,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; } |