diff options
Diffstat (limited to 'xlators/features/quota/src/quota.c')
| -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 913741e0fda..c3e730bd1fd 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -1013,7 +1013,8 @@ quota_fill_inodectx (xlator_t *this, inode_t *inode, dict_t *dict,                          goto unlock;                  } -                if (loc->name == NULL) +                /* do nothing if it is a nameless lookup */ +                if (loc->name == NULL || !loc->parent)                          goto unlock;                  list_for_each_entry (dentry, &ctx->parents, next) {  | 
