Bart Van Assche
6a75405369
scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory
...
[ Upstream commit a861b49273578e255426a499842cf7f465456351 ]
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: be25152c0d9e ("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:46:31 +01:00
..
2019-03-23 14:35:20 +01:00
2017-11-02 11:10:55 +01:00
2019-02-12 19:46:13 +01:00
2017-08-10 19:40:50 -04:00
2018-04-26 11:02:10 +02:00
2017-08-07 14:04:01 -04:00
2020-01-14 20:05:46 +01:00
2019-06-19 08:20:57 +02:00
2020-01-23 08:20:36 +01:00
2020-01-04 13:59:37 +01:00
2020-01-17 19:45:53 +01:00
2019-02-12 19:46:12 +01:00
2019-11-10 11:25:09 +01:00
2017-06-20 12:18:27 +02:00
2020-01-23 08:20:36 +01:00
2019-08-09 17:53:31 +02:00
2020-01-23 08:20:31 +01:00
2019-04-05 22:31:26 +02:00
2019-08-16 10:13:54 +02:00
2018-10-20 09:48:50 +02:00
2019-12-01 09:13:29 +01:00
2019-08-09 17:53:31 +02:00
2020-01-09 10:17:51 +01:00
2020-01-09 10:17:51 +01:00
2020-01-27 14:46:25 +01:00
2020-01-04 13:59:34 +01:00
2018-05-25 16:17:50 +02:00
2018-01-02 20:31:05 +01:00
2017-11-02 11:10:55 +01:00
2020-01-04 13:59:47 +01:00
2020-01-09 10:17:58 +01:00
2019-06-19 08:20:56 +02:00
2020-01-27 14:46:31 +01:00
2020-01-23 08:20:36 +01:00
2019-06-25 11:36:53 +08:00
2017-11-02 11:10:55 +01:00
2019-11-20 17:59:54 +01:00
2020-01-04 13:59:47 +01:00
2018-09-19 22:43:42 +02:00
2018-09-19 22:43:42 +02:00
2018-09-19 22:43:42 +02:00
2019-03-13 14:03:15 -07:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:07 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-01-04 13:59:44 +01:00
2017-11-02 11:10:55 +01:00
2019-10-29 09:17:32 +01:00
2017-11-02 11:10:55 +01:00
2019-12-01 09:13:34 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-08-10 19:55:35 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:12 -04:00
2018-11-13 11:14:56 -08:00
2018-11-13 11:14:56 -08:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 14:04:01 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-08-15 18:12:47 +02:00
2019-07-10 09:54:35 +02:00
2019-08-25 10:50:13 +02:00
2018-08-15 18:12:47 +02:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-10-20 09:48:51 +02:00
2018-10-20 09:48:51 +02:00
2019-12-01 09:13:27 +01:00
2017-06-20 12:18:27 +02:00
2020-01-04 13:59:49 +01:00
2019-11-10 11:25:11 +01:00
2017-08-22 16:34:36 +02:00
2019-12-21 10:47:52 +01:00
2017-08-07 14:04:02 -04:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:56 -08:00
2020-01-04 13:59:44 +01:00
2017-11-02 11:10:55 +01:00
2019-10-29 09:16:53 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-01-04 13:59:48 +01:00
2019-11-20 18:00:48 +01:00
2017-11-02 11:10:55 +01:00
2017-09-01 11:59:17 +02:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:01 -04:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:05 -04:00
2017-08-07 14:04:01 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-08-28 22:15:46 -04:00
2017-11-02 11:10:55 +01:00
2019-05-16 19:42:27 +02:00
2017-11-02 11:10:55 +01:00
2020-01-04 13:59:48 +01:00
2017-12-20 10:10:20 +01:00
2019-05-08 07:20:49 +02:00
2019-05-08 07:20:49 +02:00
2019-10-29 09:17:31 +01:00
2017-08-25 17:08:07 -04:00
2017-11-02 11:10:55 +01:00
2019-11-20 17:59:24 +01:00
2019-10-07 18:55:06 +02:00
2017-11-02 11:10:55 +01:00
2019-01-23 08:09:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-05 22:31:30 +02:00
2019-10-29 09:17:32 +01:00
2020-01-23 08:20:37 +01:00
2017-11-02 11:10:55 +01:00
2017-10-11 14:33:12 -04:00
2019-04-20 09:15:01 +02:00
2017-08-29 21:51:45 -04:00
2018-06-05 11:41:59 +02:00
2017-09-07 12:12:43 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-25 11:25:06 +02:00
2020-01-17 19:45:49 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-19 08:42:51 +01:00
2018-08-06 16:20:52 +02:00
2017-08-25 17:21:10 -04:00
2019-11-10 11:25:10 +01:00
2018-05-30 07:51:49 +02:00
2017-11-02 11:10:55 +01:00
2018-08-15 18:12:47 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-08 11:49:51 -04:00
2017-11-02 11:10:55 +01:00
2019-05-08 07:20:50 +02:00
2020-01-04 13:59:44 +01:00
2017-06-27 21:46:55 -04:00
2019-03-23 14:35:20 +01:00
2019-07-03 13:16:00 +02:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-08-24 13:09:01 +02:00
2017-08-22 16:34:36 +02:00