Daniel Wagner 657ed8a8a6 scsi: qla2xxx: Do not consume srb greedily
qla2xx_process_get_sp_from_handle() will clear the slot in which the
current srb is stored. As a result it can't be used in
qla24xx_process_mbx_iocb_response() to check for consistency and later
again in qla24xx_mbx_iocb_entry().

Move the consistency check directly into qla24xx_mbx_iocb_entry() and avoid
the double call or any open coding of the
qla2xx_process_get_sp_from_handle() functionality.

Link: https://lore.kernel.org/r/20200929073802.18770-1-dwagner@suse.de
Fixes: 31a3271ff11b ("scsi: qla2xxx: Handle incorrect entry_type entries")
Reviewed-by: Arun Easi <aeasi@marvell.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-10-07 23:50:03 -04:00
..
2019-11-07 06:43:18 -07:00
2020-03-11 23:07:59 -04:00
2020-09-02 22:49:06 -04:00
2019-03-02 11:39:54 -08:00
2019-11-12 22:21:35 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2020-10-07 21:48:28 -04:00
2019-01-08 21:58:35 -05:00
2020-09-02 22:49:06 -04:00
2020-09-02 22:49:06 -04:00
2020-09-02 22:49:06 -04:00
2020-07-24 22:09:55 -04:00
2020-08-06 16:50:07 -07:00
2018-11-06 21:31:28 -05:00
2020-07-24 22:09:55 -04:00
2019-07-11 15:14:01 -07:00
2020-09-15 21:32:01 -04:00
2020-09-15 21:31:27 -04:00
2020-09-15 17:34:18 -04:00
2020-07-24 22:09:55 -04:00
2020-08-06 16:50:07 -07:00
2020-06-19 23:06:43 -04:00
2020-08-14 16:01:59 -07:00
2019-07-11 15:14:01 -07:00
2020-02-24 15:01:57 -05:00
2020-08-06 16:50:07 -07:00
2019-07-11 15:14:01 -07:00