Re: [PATCH] scsi: hisi_sas: Fix NULL pointer exception when do user_scan()
From: Martin K. Petersen
Date: Tue Mar 10 2026 - 22:10:24 EST
On Thu, 05 Mar 2026 14:40:39 +0800, Yihang Li wrote:
> user_scan() invokes updated sas_user_scan() for channel 0, and if
> successful, iteratively scans remaining channels (1 to shost->max_channel)
> via scsi_scan_host_selected() in commit 37c4e72b0651 ("scsi: Fix
> sas_user_scan() to handle wildcard and multi-channel scans"). However,
> hisi_sas supports only one channel, and the current value of max_channel
> is 1. sas_user_scan() for channel 1 will trigger the following NULL
> pointer exception:
>
> [...]
Applied to 7.0/scsi-fixes, thanks!
[1/1] scsi: hisi_sas: Fix NULL pointer exception when do user_scan()
https://git.kernel.org/mkp/scsi/c/8ddc0c269165
--
Martin K. Petersen