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>

authored by

Xiaotian Feng and committed by
Jens Axboe
3839e4b2 a4e7d464

+1
+1
block/blk-integrity.c
··· 379 379 380 380 kobject_uevent(&bi->kobj, KOBJ_REMOVE); 381 381 kobject_del(&bi->kobj); 382 + kobject_put(&bi->kobj); 382 383 kmem_cache_free(integrity_cachep, bi); 383 384 disk->integrity = NULL; 384 385 }