projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4e7d46
)
block: fix improper kobject release in blk_integrity_unregister
author
Xiaotian Feng
<dfeng@redhat.com>
Tue, 28 Jul 2009 07:11:14 +0000
(09:11 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 28 Jul 2009 07:11:14 +0000
(09:11 +0200)
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
patch
|
blob
|
history
diff --git
a/block/blk-integrity.c
b/block/blk-integrity.c
index
73e28d3
..
15c6308
100644
(file)
--- a/
block/blk-integrity.c
+++ b/
block/blk-integrity.c
@@
-379,6
+379,7
@@
void blk_integrity_unregister(struct gendisk *disk)
kobject_uevent(&bi->kobj, KOBJ_REMOVE);
kobject_del(&bi->kobj);
+ kobject_put(&bi->kobj);
kmem_cache_free(integrity_cachep, bi);
disk->integrity = NULL;
}