Skip to content

Commit

Permalink
bio-integrity: Fix use of bs->bio_integrity_pool after free
Browse files Browse the repository at this point in the history
This fixes a copy and paste error introduced by 9f060e2
("block: Convert integrity to bvec_alloc_bs()").

Found by Coverity (CID 1020654).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Bjorn Helgaas authored and Jens Axboe committed Sep 17, 2013
1 parent 577cee1 commit adbe699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit adbe699

Please sign in to comment.