Files
linux/drivers/scsi
Bart Van Assche 6d18ef401a scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory
[ Upstream commit a861b49273 ]

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 <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Fixes: be25152c0d ("qla2xxx: Improve T10-DIF/PI handling in driver.") # v4.11.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:42 +01:00
..
2019-05-16 19:41:23 +02:00
2019-02-12 19:47:25 +01:00
2018-06-19 22:02:25 -04:00
2020-01-23 08:21:28 +01:00
2018-08-21 23:54:17 -04:00
2017-12-04 20:32:53 -05:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-05-18 12:03:51 -04:00
2015-11-09 16:32:14 -08:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:10 -04:00
2019-12-01 09:16:26 +01:00
2016-01-27 20:36:10 +08:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2017-04-13 13:58:20 -04:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2016-02-23 21:27:02 -05:00
2017-04-26 18:32:29 -04:00
2018-05-01 23:30:12 -04:00