]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Fix setting of hisi_sas_slot.is_internal
authorJohn Garry <john.garry@huawei.com>
Mon, 31 Jan 2022 11:13:27 +0000 (19:13 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 31 Jan 2022 21:50:59 +0000 (16:50 -0500)
commit3a56badb895778fc7d2bda28a91442396982be88
tree6d386dbf0a3d832297717d0bdf153fc11fcd3eb0
parent580ba62e7a9a768a3da6311d19cba945d6b92ec3
scsi: hisi_sas: Fix setting of hisi_sas_slot.is_internal

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: c5470e2a1f61 ("scsi: hisi_sas: Factor out task prep and delivery code")
Reported-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c