diff options
| author | Xiang Chen <[email protected]> | 2017-03-23 01:25:36 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-03-23 11:12:02 -0400 |
| commit | ccbfe5a05a5be7670d1b91ad07d8b1f3b9dbd45e (patch) | |
| tree | 937cb19252371555bfd00b98c21d238b2dbc04be /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 8b05ad6a9dbc4306c8eaf0f5269206647ed1ad7e (diff) | |
scsi: hisi_sas: release SMP slot in lldd_abort_task
When an SMP task timeouts, it will call lldd_abort_task to release the
associated slot, and then will release the sas_task.
Currently in lldd_abort_task, if we fail to internally abort IO, then
the slot of SMP IO is not released, but sas_task will still be later
released, so the slot's sas_task is NULL, which will cause NULL pointer
when hisi_sas_slot_task_free happens later.
To resolve, check the return value of internal abort, and release the
slot if it failed.
Signed-off-by: Xiang Chen <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions