Re: [PATCH] scsi: stex: fix reboot_notifier leak in probe error path

From: Martin K. Petersen

Date: Wed Nov 12 2025 - 21:47:19 EST


On Tue, 04 Nov 2025 17:48:47 +0800, Haotian Zhang wrote:

> In stex_probe(), register_reboot_notifier() is called at the beginning,
> but if any subsequent initialization step fails, the function returns
> without unregistering the notifier, resulting in a resource leak.
>
> Add unregister_reboot_notifier() in the out_disable error path to ensure
> proper cleanup on all failure paths.
>
> [...]

Applied to 6.19/scsi-queue, thanks!

[1/1] scsi: stex: fix reboot_notifier leak in probe error path
https://git.kernel.org/mkp/scsi/c/20da637eb545

--
Martin K. Petersen