mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: bio-integrity: fix possible segmentation fault
@ 2013-07-23 23:12 Andi Shyti
  2013-07-24  1:02 ` Gu Zheng
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Shyti @ 2013-07-23 23:12 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel, andi

free bvec_integrity_pool if it's allocated, not bio_integrity_pool

Signed-off-by: Andi Shyti <andi@etezian.org>
---
 fs/bio-integrity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c
index 8fb4291..45e944f 100644
--- a/fs/bio-integrity.c
+++ b/fs/bio-integrity.c
@@ -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);
 
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-24  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-23 23:12 [PATCH] fs: bio-integrity: fix possible segmentation fault Andi Shyti
2013-07-24  1:02 ` Gu Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome