From 7a5325d284a850f4a18de8795f88e45816bfaf4f Mon Sep 17 00:00:00 2001 From: vinayak hegde Date: Tue, 17 Nov 2009 06:17:04 +0000 Subject: cluster/stripe: Wrong variable is checked after calloc. Signed-off-by: Vinayak Hegde Signed-off-by: Anand V. Avati BUG: 368 (setattr on a non-regular file makes glusterfs crash) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=368 --- xlators/cluster/stripe/src/stripe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 02e09efbcd1..1746b2e7216 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -3670,7 +3670,7 @@ init (xlator_t *this) goto out; priv->state = CALLOC (count, sizeof (int8_t)); - if (!priv->xl_array) + if (!priv->state) goto out; priv->child_count = count; -- cgit