diff options
| author | Colin Ian King <[email protected]> | 2017-12-22 00:28:52 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-01-03 22:52:43 -0500 |
| commit | 5c665aeb65aa066775763e59110ba4f5b5917bb6 (patch) | |
| tree | 095be66c7adf0d3995f8d02bba9547e642156446 /tools/perf/scripts/python/bin | |
| parent | cc019a5a3b58670efe765f19aec42e28c16d7aed (diff) | |
scsi: lpfc: don't dereference localport before it has been null checked
localport is being dereferenced to assign lport and then immediately
afterwards localport is being sanity checked to see if it is null. Fix
this by only dereferencing localport until after it has been null
checked.
Detected by CoverityScan, CID#1463038 ("Dereference before null check")
Fixes: 3a8cefbfc5ee ("scsi: lpfc: Beef up stat counters for debug")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions