block: fix improper kobject release in blk_integrity_unregister
authorXiaotian Feng <dfeng@redhat.com>
Tue, 28 Jul 2009 07:11:14 +0000 (09:11 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Jul 2009 07:11:14 +0000 (09:11 +0200)
commit3839e4b29b4385e4b31075e7805683e2aa2a8103
tree48481cbd67b72e2a62f304daff2a7d3cf86bd1f4
parenta4e7d46407d73f35d217013b363b79a8f8eafcaa
block: fix improper kobject release in blk_integrity_unregister

blk_integrity_unregister should use kobject_put to release the kobject,
otherwise after bi is freed, memory of bi->kobj->name is leaked.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-integrity.c