summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-06-30 20:56:58 +0530
committerVijay Bellur <vbellur@redhat.com>2014-07-01 23:48:20 -0700
commit4e74cbf1da39f8244b5f732b314aab91495b4e29 (patch)
tree262bdfb00d877af2607cb2ecfb953cb9857fa763 /xlators/performance
parente19dc72102d0afb4a95252f3f828b05455c9aac1 (diff)
performance/md-cache: Guard against null dict
BUG: 1114677 Change-Id: Ica4f4ad97d7d1edc3e48e7f1a6ec70b14acffc66 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8205 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index ef156e309a1..5de84cdc4d5 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -598,7 +598,7 @@ mdc_inode_xatt_unset (xlator_t *this, inode_t *inode, char *name)
if (!mdc)
goto out;
- if (!name)
+ if (!name || !mdc->xattr)
goto out;
LOCK (&mdc->lock);