aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJames Smart <[email protected]>2019-08-14 16:56:45 -0700
committerMartin K. Petersen <[email protected]>2019-08-19 22:41:09 -0400
commit07f50997d66c3273121dd6b8a7d433cdfb5395c1 (patch)
tree5bd09c8a898b1e0b26249396c972f6f50ceb5539 /tools/perf/scripts/python/bin
parent6ede2ddd8bdd28bdaf43d15e70dc0ef38c5448db (diff)
scsi: lpfc: Fix null ptr oops updating lpfc_devloss_tmo via sysfs attribute
If an admin updates lpfc's devloss_tmo sysfs attribute, the kernel will oops. Coding of a loop allowed a new value (rport) to be set/checked for null followed by an older value (remoteport) checked for null to allow progress where the new value, even though null, will be referenced. Rework the logic to validate and prevent any reference to the null ptr. Signed-off-by: Dick Kennedy <[email protected]> Signed-off-by: James Smart <[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