summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src/stripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/stripe/src/stripe.c')
-rw-r--r--xlators/cluster/stripe/src/stripe.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index a29409a..197bc50 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -3241,7 +3241,12 @@ fini (xlator_t *this)
{
stripe_private_t *priv = this->private;
struct stripe_options *prev = NULL;
- struct stripe_options *trav = priv->pattern;
+ struct stripe_options *trav = NULL;
+
+ if (priv == NULL)
+ return;
+
+ trav = priv->pattern;
while (trav) {
prev = trav;
trav = trav->next;