projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74aa8c2
)
block: Fix double put in blk_integrity_unregister
author
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 1 Oct 2008 07:38:38 +0000
(
03:38
-0400)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:21 +0000
(08:56 +0200)
- 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
patch
|
blob
|
history
diff --git
a/block/blk-integrity.c
b/block/blk-integrity.c
index
69023da
..
e3817a0
100644
(file)
--- a/
block/blk-integrity.c
+++ b/
block/blk-integrity.c
@@
-376,7
+376,7
@@
void blk_integrity_unregister(struct gendisk *disk)
kobject_uevent(&bi->kobj, KOBJ_REMOVE);
kobject_del(&bi->kobj);
- kobject_put(&disk_to_dev(disk)->kobj);
kmem_cache_free(integrity_cachep, bi);
+ disk->integrity = NULL;
}
EXPORT_SYMBOL(blk_integrity_unregister);