Re: [PATCH] scsi: snic: Fix scsi host leak on workqueue allocation failure

"Martin K. Petersen (Oracle)" <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,org.kernel.vger.linux-kernel
Message-ID <178775714081.3862282.6855986330540890481.b4-ty@b4>
On Mon, 27 Jul 2026 15:34:38 +0800, Chen Changcheng wrote:

> In snic_add_host(), if scsi_add_host() succeeds but
> alloc_ordered_workqueue() fails, the function returns -ENOMEM
> with shost->work_q left as NULL. The caller's error path then
> calls snic_del_host(), which returns early when !shost->work_q
> without calling scsi_remove_host(). The Scsi_Host remains
> registered in sysfs as a zombie device even after the probe
> has failed. This causes:
> 
> [...]

Applied to 7.3/scsi-queue, thanks!

[1/1] scsi: snic: Fix scsi host leak on workqueue allocation failure
      https://git.kernel.org/mkp/scsi/c/12e67eb89eb2

-- 
Martin K. Petersen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.