Commit 14be351
scsi: ufs: core: Fix an error handler crash
The UFS error handler may be activated before SCSI scanning has started
and hence before hba->ufs_device_wlun has been set. Check the
hba->ufs_device_wlun pointer before using it.
Cc: Peter Wang <peter.wang@mediatek.com>
Cc: Nitin Rawat <nitin.rawat@oss.qualcomm.com>
Fixes: e23ef4f ("scsi: ufs: core: Fix error handler host_sem issue")
Fixes: f966e02 ("scsi: ufs: core: Fix runtime suspend error deadlock")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com>
Tested-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com> #SM8750
Link: https://patch.msgid.link/20251204170457.994851-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 278712d commit 14be351
1 file changed
Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6699 | 6699 | | |
6700 | 6700 | | |
6701 | 6701 | | |
6702 | | - | |
6703 | | - | |
6704 | | - | |
6705 | | - | |
6706 | | - | |
6707 | | - | |
6708 | | - | |
6709 | | - | |
6710 | | - | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
6711 | 6716 | | |
6712 | | - | |
6713 | 6717 | | |
6714 | | - | |
6715 | 6718 | | |
6716 | 6719 | | |
6717 | 6720 | | |
| |||
0 commit comments