summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/interrupts.py
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2025-07-11 11:30:09 +0300
committerJens Axboe <axboe@kernel.dk>2025-07-12 05:39:23 +0300
commit3051247e4faa32a3d90c762a243c2c62dde310db (patch)
tree8447523312b9cc8f5a2227105c34ad881413bf66 /scripts/gdb/linux/interrupts.py
parent4cdf1bdd45ac78a088773722f009883af30ad318 (diff)
downloadlinux-3051247e4faa32a3d90c762a243c2c62dde310db.tar.xz
block: fix kobject leak in blk_unregister_queue
The kobject for the queue, `disk->queue_kobj`, is initialized with a reference count of 1 via `kobject_init()` in `blk_register_queue()`. While `kobject_del()` is called during the unregister path to remove the kobject from sysfs, the initial reference is never released. Add a call to `kobject_put()` in `blk_unregister_queue()` to properly decrement the reference count and fix the leak. Fixes: 2bd85221a625 ("block: untangle request_queue refcounting from sysfs") Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250711083009.2574432-1-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions