block: Fix double free in blk_integrity_unregister
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Oct 2010 13:49:18 +0000 (15:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 15 Oct 2010 13:49:18 +0000 (15:49 +0200)
commite817bf3f68f55e7307c3e9abe5f32d0c05c83988
tree0280cb83bb13b00d64af3cfc5960fcdd2a5343ba
parent892b6f90db81cccb723d5d92f4fddc2d68b206e1
block: Fix double free in blk_integrity_unregister

Commit 3839e4b introduced a kobject_put but failed to remove the
kmem_cache_free beneath it, leading to a double free.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-integrity.c