aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2019-04-17 21:44:42 +0000
committerMartin K. Petersen <[email protected]>2019-04-29 21:24:51 +0000
commita861b49273578e255426a499842cf7f465456351 (patch)
tree4eed5f27352f52a980cc18b3309b0fcf2d23196c /tools/perf/scripts/python/stat-cpi.py
parentscsi: qla2xxx: Fix hardirq-unsafe locking (diff)
downloadkernel-a861b49273578e255426a499842cf7f465456351.tar.gz
kernel-a861b49273578e255426a499842cf7f465456351.zip
scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory
The "(&ctio->u.status1.sense_data)[i]" where i >= 0 expressions in qlt_send_resp_ctio() are probably typos and should have been "(&ctio->u.status1.sense_data[4 * i])" instead. Instead of only fixing these typos, modify the code for storing sense data such that it becomes easy to read. This patch fixes a Coverity complaint about accessing an array outside its bounds. Cc: Himanshu Madhani <[email protected]> Cc: Giridhar Malavali <[email protected]> Fixes: be25152c0d9e ("qla2xxx: Improve T10-DIF/PI handling in driver.") # v4.11. Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions