summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaofei Tan <tanxiaofei@huawei.com>2018-05-09 18:10:50 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-18 18:22:09 +0300
commit2f6bca202b78e2b63a62b46ff5dc26f300785e23 (patch)
treeb0936707a2a080fad6abf7fde33615fd0c99e48c /tools/perf/scripts/python
parente85d93b21267fff56110e3a258b9fad8adbfbce3 (diff)
downloadlinux-2f6bca202b78e2b63a62b46ff5dc26f300785e23.tar.xz
scsi: hisi_sas: add check of device in hisi_sas_task_exec()
Currently we don't check that device is not gone before dereferencing its elements in the function hisi_sas_task_exec() (specifically, the DQ pointer). This patch fixes this issue by filling in the DQ pointer in hisi_sas_task_prep() after we check that the device pointer is still safe to reference. [mkp: typo] Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions