diff options
author | Xiang Chen <chenxiang66@hisilicon.com> | 2020-09-01 19:13:03 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-02 22:49:07 -0400 |
commit | 847e8355294597898ed3b6c2a3130ab962d03004 (patch) | |
tree | 566ca4f832e5dcbaad0d9f19e39ff2f49d664826 /net/sunrpc/debugfs.c | |
parent | 2a5c98d2d2fe2aeaf95274a48fc9d92b5955dc74 (diff) | |
download | linux-847e8355294597898ed3b6c2a3130ab962d03004.tar.bz2 |
scsi: hisi_sas: Avoid accessing to SSP task for SMP I/Os
hisi_sas_slot_task_free() attempts to dereference SSP task for non-ATA
tasks. If the task is SMP, the code may reference the wrong structure
although this may not cause any problems.
To avoid this, only access to SSP task when slot->n_elem_dif is not 0 which
indicates this is an SSP task.
Link: https://lore.kernel.org/r/1598958790-232272-2-git-send-email-john.garry@huawei.com
Signed-off-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>
Diffstat (limited to 'net/sunrpc/debugfs.c')
0 files changed, 0 insertions, 0 deletions