diff options
author | Xiaofei Tan <tanxiaofei@huawei.com> | 2018-05-09 18:10:50 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-18 18:22:09 +0300 |
commit | 2f6bca202b78e2b63a62b46ff5dc26f300785e23 (patch) | |
tree | b0936707a2a080fad6abf7fde33615fd0c99e48c /tools/perf/scripts/python/stackcollapse.py | |
parent | e85d93b21267fff56110e3a258b9fad8adbfbce3 (diff) | |
download | linux-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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions