bio-integrity: Fix use of bs->bio_integrity_pool after free
[linux-3.10.git] / fs / bio-integrity.c
index 8fb4291..45e944f 100644 (file)
@@ -734,7 +734,7 @@ void bioset_integrity_free(struct bio_set *bs)
                mempool_destroy(bs->bio_integrity_pool);
 
        if (bs->bvec_integrity_pool)
-               mempool_destroy(bs->bio_integrity_pool);
+               mempool_destroy(bs->bvec_integrity_pool);
 }
 EXPORT_SYMBOL(bioset_integrity_free);