lkml.org 
[lkml]   [2026]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: hisi_sas: Fix NULL pointer exception when do user_scan()
Date
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

\
 
 \ /
  Last update: 2026-03-11 03:11    [W:0.094 / U:88.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog