Re: [PATCH] scsi: rdac: Keep the error status when controller lookup fails

From: Martin K. Petersen (Oracle)

Date: Sun Nov 08 2026 - 22:58:51 EST


On Mon, 26 Oct 2026 19:54:09 +0800, shao.mingyin@xxxxxxxxxx wrote:

> initialize_controller() records SCSI_DH_RES_TEMP_UNAVAIL when
> get_controller() fails, but then overwrites it with SCSI_DH_OK
> unconditionally. It therefore reports success with h->ctlr == NULL and
> rdac_bus_attach() continues with check_ownership(), which dereferences
> h->ctlr:
>
> BUG: kernel NULL pointer dereference, address: 0000000000000000
> ...
> check_ownership
> rdac_bus_attach
>
> [...]

Applied to 7.4/scsi-fixes, thanks!

[1/1] scsi: rdac: Keep the error status when controller lookup fails
https://git.kernel.org/mkp/scsi/c/46846939d5f3

--
Martin K. Petersen