diff options
author | James Smart <[email protected]> | 2020-05-20 11:59:27 -0700 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2020-05-27 07:12:40 +0200 |
commit | fcdd14b86f6b891b5e894bf1dbeaf02cc79bdbce (patch) | |
tree | 904247666157694a3241df76dbcb7eaed41070c0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3b2a1ebceba3e03b17ef0970bb7757a3a64cdc8b (diff) |
lpfc: Fix pointer checks and comments in LS receive refactoring
Additional testing encountered null pointers that weren't fully qualified
in lpfc_nvmet_xmt_ls_abort_cmp() and lpfc_nvmet_unsol_issue_abort().
The same error was detected and reported by static checker reporting:
drivers/scsi/lpfc/lpfc_sli.c:2905 lpfc_nvme_unsol_ls_handler()
error: we previously assumed 'phba->targetport' could be null
(see line 2837)
Fix by making phba->nvmet_support and phba->targetport validity checks
in lpfc_nvmet_xmt_ls_abort_cmp() and lpfc_nvmet_unsol_issue_abort().
Fixes: 3a8070c567aaa (“lpfc: Refactor NVME LS receive handling”)
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Paul Ely <[email protected]>
Signed-off-by: James Smart <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions