From 0ff6a1da6ac4a4b0e01ae50f1d8e3605e36bf2fc Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 6 Feb 2014 15:22:11 +0530 Subject: features/quota: fix crash in error handling after building ancestry. Change-Id: Ifbebf1aa496d49a6c4bb30258b83aaf9792828e5 BUG: 1059833 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/6923 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/quota/src/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index a8b4eb2c360..5224c475bdc 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -721,7 +721,7 @@ quota_check_limit_continuation (struct list_head *parents, inode_t *inode, this = THIS; if ((op_ret < 0) || list_empty (parents)) { - if (list_empty (parents)) { + if (op_ret >= 0) { gf_log (this->name, GF_LOG_WARNING, "Couldn't build ancestry for inode (gfid:%s). " "Without knowing ancestors till root, quota " -- cgit