Arun Easi
6641df81ab
scsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand()
...
RIP: 0010:kmem_cache_free+0xfa/0x1b0
Call Trace:
qla2xxx_mqueuecommand+0x2b5/0x2c0 [qla2xxx]
scsi_queue_rq+0x5e2/0xa40
__blk_mq_try_issue_directly+0x128/0x1d0
blk_mq_request_issue_directly+0x4e/0xb0
Fix incorrect call to free srb in qla2xxx_mqueuecommand(), as srb is now
allocated by upper layers. This fixes smatch warning of srb unintended
free.
Link: https://lore.kernel.org/r/20210329085229.4367-7-njavali@marvell.com
Fixes: af2a0c51b120 ("scsi: qla2xxx: Fix SRB leak on switch command timeout")
Cc: stable@vger.kernel.org # 5.5
Reported-by: Laurence Oberman <loberman@redhat.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-03-29 22:38:58 -04:00
..
2020-06-14 01:57:21 +09:00
2021-03-24 21:47:21 -04:00
2021-03-29 22:38:58 -04:00
2021-01-13 00:25:19 -05:00
2021-01-13 00:25:20 -05:00
2020-09-16 14:31:50 +02:00
2021-03-29 22:38:58 -04:00
2021-01-22 22:04:16 -05:00
2019-08-12 21:34:04 -04:00
2021-01-13 00:25:20 -05:00
2021-01-13 00:25:20 -05:00
2021-03-15 22:14:53 -04:00
2021-03-29 22:38:58 -04:00
2020-10-14 16:19:42 -07:00
2021-03-29 22:38:57 -04:00
2021-03-24 21:47:20 -04:00
2021-01-13 00:25:20 -05:00
2020-10-14 16:19:42 -07:00
2021-03-24 21:47:20 -04:00
2021-03-24 21:47:20 -04:00
2021-01-29 13:34:10 -05:00
2020-10-14 16:19:42 -07:00
2021-03-24 21:47:21 -04:00
2020-09-16 14:31:50 +02:00
2020-12-09 11:34:17 -05:00
2020-09-16 14:31:50 +02:00
2021-03-29 22:38:58 -04:00
2020-09-16 14:31:50 +02:00
2021-03-24 21:47:20 -04:00
2021-03-29 22:38:58 -04:00
2020-11-04 22:39:37 -05:00
2020-12-16 13:34:31 -08:00
2020-12-09 11:34:17 -05:00
2021-01-13 00:25:20 -05:00
2021-03-24 21:47:20 -04:00
2018-12-19 21:26:38 -05:00