scsi: qla2xxx: Fix dropped srb resource.
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 11 Sep 2018 17:18:16 +0000 (10:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:46:27 +0000 (18:46 +0100)
commitc7ddd7ba1d05fdd07e8762677771b338dd38e35e
tree87f22da56337ce81298885915307f0de0bd1206b
parent8c32664a6a0d8fcc4d1147cf35dfcd92f247fa5d
scsi: qla2xxx: Fix dropped srb resource.

[ Upstream commit 527b8ae3948bb59c13ebaa7d657ced56ea25ab05 ]

When FW rejects a command due to "entry_status" error (malform IOCB), the srb
resource needs to be returned back for cleanup.  The filter to catch this is
in the wrong location.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_isr.c