diff options
| author | 2018-05-09 23:10:50 +0800 | |
|---|---|---|
| committer | 2018-05-18 11:22:09 -0400 | |
| commit | 2f6bca202b78e2b63a62b46ff5dc26f300785e23 (patch) | |
| tree | b0936707a2a080fad6abf7fde33615fd0c99e48c /include/linux/timerqueue.h | |
| parent | scsi: hisi_sas: Use device lock to protect slot alloc/free (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 <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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
