summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota')
-rw-r--r--xlators/features/quota/src/quota.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 41ad2f04d5c..1d32e1b06fe 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -692,7 +692,8 @@ quota_add_parent (struct list_head *list, char *name, uuid_t pgfid)
}
entry = __quota_dentry_new (NULL, name, pgfid);
- list_add_tail (&entry->next, list);
+ if (entry)
+ list_add_tail (&entry->next, list);
out:
if (found)