summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe
diff options
context:
space:
mode:
authorvinayak hegde <vinayak@gluster.com>2009-11-17 06:17:04 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-19 00:53:09 -0800
commit7a5325d284a850f4a18de8795f88e45816bfaf4f (patch)
treec792603dc4146ac4ab7c6d576789c8f185708575 /xlators/cluster/stripe
parent5cd0d1c7447c6947e81c659635a472a97d41303d (diff)
cluster/stripe: Wrong variable is checked after calloc.
Signed-off-by: Vinayak Hegde <vinayak@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 368 (setattr on a non-regular file makes glusterfs crash) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=368
Diffstat (limited to 'xlators/cluster/stripe')
-rw-r--r--xlators/cluster/stripe/src/stripe.c2
1 files changed, 1 insertions, 1 deletions
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;