From 9a020d144595ec84a456b929d1d99616013fe5ce Mon Sep 17 00:00:00 2001 From: vmallika Date: Thu, 8 Oct 2015 12:37:42 +0530 Subject: quota: fix crash in quota_fallocate list head was not initialized and brick was crashing with fallocate. This patch fixes the issue Change-Id: I9757b88eab61054892f0fe3de63af2683cd4fef7 BUG: 1269754 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/12314 Reviewed-by: Manikandan Selvaganesh Tested-by: NetBSD Build System Reviewed-by: Raghavendra G --- xlators/features/quota/src/quota.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/features') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 03c4a69fe68..f0ee8797206 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -4813,6 +4813,8 @@ quota_fallocate(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t mode, WIND_IF_QUOTAOFF (priv->is_quota_on, off); + INIT_LIST_HEAD (&head); + GF_ASSERT (frame); GF_VALIDATE_OR_GOTO ("quota", this, unwind); GF_VALIDATE_OR_GOTO (this->name, fd, unwind); -- cgit