summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);