diff options
| author | Nilay Shroff <[email protected]> | 2025-07-19 13:26:47 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-07-20 19:18:13 +0000 |
| commit | 1966554b2e82b89d4f6490f430ce76a379e23f1f (patch) | |
| tree | 97b50573bcdcafcb0470f7e8c8ba6e6d1cfdc7af /drivers/pwm/pwm-microchip-core.c | |
| parent | Merge tag 'nvme-6.16-2025-07-17' of git://git.infradead.org/nvme into block-6.16 (diff) | |
| download | kernel-1966554b2e82b89d4f6490f430ce76a379e23f1f.tar.gz kernel-1966554b2e82b89d4f6490f430ce76a379e23f1f.zip | |
block: fix module reference leak in mq-deadline I/O scheduler
During probe, when the block layer registers a request queue, it
defaults to the mq-deadline I/O scheduler if the device is single-queue
and the mq-deadline module is available. To determine availability, the
elevator_set_default() invokes elevator_find_get(), which increments the
module's reference count. However, this reference is never released,
resulting in a module reference leak that prevents the mq-deadline module
from being unloaded.
This patch fixes the issue by ensuring the acquired module reference is
properly released.
Fixes: 1e44bedbc921 ("block: unifying elevator change")
Signed-off-by: Nilay Shroff <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-microchip-core.c')
0 files changed, 0 insertions, 0 deletions
