diff options
author | Xiaofei Tan <[email protected]> | 2018-05-09 23:10:50 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2018-05-18 11:22:09 -0400 |
commit | 2f6bca202b78e2b63a62b46ff5dc26f300785e23 (patch) | |
tree | b0936707a2a080fad6abf7fde33615fd0c99e48c /tools/perf/scripts/python/syscall-counts.py | |
parent | e85d93b21267fff56110e3a258b9fad8adbfbce3 (diff) |
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 <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions