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 16:59:53 +0000 (17:59 +0100)
commit9ab019f1ddc4ad8a23fb2bdcbb5674d06cf5f628
tree50b60228f908d47ebf6e08cc2ea9141e1e3089c5
parent32fd94c6dbf7e634ab91818546e12ea7600e157d
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