Re: [PATCH] block: fix resource leak in blk_register_queue() error path
From: Jens Axboe
Date: Mon Apr 14 2025 - 10:57:34 EST
On Sat, 12 Apr 2025 17:25:54 +0800, Zheng Qixing wrote:
> When registering a queue fails after blk_mq_sysfs_register() is
> successful but the function later encounters an error, we need
> to clean up the blk_mq_sysfs resources.
>
> Add the missing blk_mq_sysfs_unregister() call in the error path
> to properly clean up these resources and prevent a memory leak.
>
> [...]
Applied, thanks!
[1/1] block: fix resource leak in blk_register_queue() error path
commit: 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e
Best regards,
--
Jens Axboe