summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.c
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-10-08 12:37:42 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-10-08 21:00:12 -0700
commit9a020d144595ec84a456b929d1d99616013fe5ce (patch)
tree4a40886c14ad0d1446f82c2bae5d9b397c1cc6cb /xlators/features/quota/src/quota.c
parent58d1a9be562630bd1ed8af3e496ca05e087adece (diff)
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 <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/12314 Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/quota/src/quota.c')
-rw-r--r--xlators/features/quota/src/quota.c2
1 files changed, 2 insertions, 0 deletions
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);