Commit 04bbb1b7 authored by John Garry's avatar John Garry Committed by Greg Kroah-Hartman
Browse files

scsi: hisi_sas: Fix setting of hisi_sas_slot.is_internal

[ Upstream commit c763ec4c ]

The hisi_sas_slot.is_internal member is not set properly for ATA commands
which the driver sends directly. A TMF struct pointer is normally used as a
test to set this, but it is NULL for those commands. It's not ideal, but
pass an empty TMF struct to set that member properly.

Link: https://lore.kernel.org/r/1643627607-138785-1-git-send-email-john.garry@huawei.com


Fixes: dc313f6b ("scsi: hisi_sas: Factor out task prep and delivery code")
Reported-by: default avatarXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 8aa580cd ("scsi: hisi_sas: Enable force phy when SATA disk directly connected")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8b8e6d43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment