diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/quota/src/quota.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 622227912da..47436fd5783 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) |