aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/powerpc-hcalls.py
diff options
context:
space:
mode:
authorZhong Jinghua <[email protected]>2023-03-29 07:17:39 +0000
committerMartin K. Petersen <[email protected]>2023-04-03 01:44:27 +0000
commit48b19b79cfa37b1e50da3b5a8af529f994c08901 (patch)
tree159562be9829d41d5ac34c954e49e2c5d940b1c3 /tools/perf/scripts/python/powerpc-hcalls.py
parentscsi: qla2xxx: Fix memory leak in qla2x00_probe_one() (diff)
downloadkernel-48b19b79cfa37b1e50da3b5a8af529f994c08901.tar.gz
kernel-48b19b79cfa37b1e50da3b5a8af529f994c08901.zip
scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param()
The validity of sock should be checked before assignment to avoid incorrect values. Commit 57569c37f0ad ("scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()") introduced this change which may lead to inconsistent values of tcp_sw_conn->sendpage and conn->datadgst_en. Fix the issue by moving the position of the assignment. Fixes: 57569c37f0ad ("scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()") Signed-off-by: Zhong Jinghua <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions