block: Fix double put in blk_integrity_unregister
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 1 Oct 2008 07:38:38 +0000 (03:38 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:21 +0000 (08:56 +0200)
commit0c032ab889e7b20b8a5a7d09313e4aca214a15f7
tree921d41ff5a31f9b538b43bea6fb56a6e2467530d
parent74aa8c2cc010035a7eef2b4ca4d6430e0dae206a
block: Fix double put in blk_integrity_unregister

- kobject_del already puts the parent.

 - Set integrity profile to NULL to prevent stale data.

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