Commit c763ec4
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: dc313f6 ("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>1 parent df7abca commit c763ec4
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
| 403 | + | |
405 | 404 | | |
406 | 405 | | |
407 | 406 | | |
| |||
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
430 | | - | |
431 | | - | |
432 | 429 | | |
433 | 430 | | |
434 | 431 | | |
| |||
587 | 584 | | |
588 | 585 | | |
589 | 586 | | |
590 | | - | |
| 587 | + | |
591 | 588 | | |
592 | 589 | | |
593 | 590 | | |
| |||
1380 | 1377 | | |
1381 | 1378 | | |
1382 | 1379 | | |
| 1380 | + | |
1383 | 1381 | | |
1384 | 1382 | | |
1385 | 1383 | | |
1386 | 1384 | | |
1387 | 1385 | | |
1388 | | - | |
| 1386 | + | |
1389 | 1387 | | |
1390 | 1388 | | |
1391 | 1389 | | |
| |||
1396 | 1394 | | |
1397 | 1395 | | |
1398 | 1396 | | |
1399 | | - | |
| 1397 | + | |
1400 | 1398 | | |
1401 | 1399 | | |
1402 | 1400 | | |
| |||
2067 | 2065 | | |
2068 | 2066 | | |
2069 | 2067 | | |
2070 | | - | |
| 2068 | + | |
2071 | 2069 | | |
2072 | 2070 | | |
2073 | 2071 | | |
| |||
0 commit comments