]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/md/raid6main.c
[PATCH] md: Assorted little md fixes
[karo-tx-linux.git] / drivers / md / raid6main.c
index ed2abb2e2e2d43a5f22b2a5b51c3ebdd093cbf69..cd477ebf2ee44d8b963ec3157a5674300e1e85f5 100644 (file)
@@ -366,7 +366,8 @@ static void shrink_stripes(raid6_conf_t *conf)
        while (drop_one_stripe(conf))
                ;
 
-       kmem_cache_destroy(conf->slab_cache);
+       if (conf->slab_cache)
+               kmem_cache_destroy(conf->slab_cache);
        conf->slab_cache = NULL;
 }