diff options
author | Guilherme G. Piccoli <[email protected]> | 2017-05-24 18:48:51 -0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2017-05-31 22:44:13 -0400 |
commit | 7c9fdfb7000715df2d187df251d11e4850ce94c8 (patch) | |
tree | b6f5523f6e08ca4f9286f0196c1bb4bef5a74c74 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 9094367a9161858004eacb7373aa2bf48c51c16d (diff) |
scsi: lpfc: Avoid NULL pointer dereference in lpfc_els_abort()
We might have a NULL pring in lpfc_els_abort(), for example on error
recovery path, since queues are destroyed during error recovery
mechanism.
In this case, we should just drop the abort since the queues will be
recreated anyway. This patch just verifies for NULL pointer and stop the
abortion of the queue in case of a NULL pring.
Also, this patch converts return type of lpfc_els_abort() from int to
void, since it's not checked anywhere.
Reported-by: Harsha Thyagaraja <[email protected]>
Reported-by: Naresh Bannoth <[email protected]>
Tested-by: Raphael Silva <[email protected]>
Signed-off-by: Guilherme G. Piccoli <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Acked-by: James Smart <[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