Re: [PATCH] block: fix kobject leak in blk_unregister_queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 11 Jul 2025 16:30:09 +0800, Ming Lei wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] block: fix kobject leak in blk_unregister_queue
      (no commit info)

Best regards,
-- 
Jens Axboe







[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux