]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
scsi: bnx2fc: Return failure if io_req is already in ABTS processing
authorJaved Hasan <jhasan@marvell.com>
Wed, 19 May 2021 06:14:16 +0000 (23:14 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:15 +0000 (19:27 +0200)
BugLink: https://bugs.launchpad.net/bugs/1933369
[ Upstream commit 122c81c563b0c1c6b15ff76a9159af5ee1f21563 ]

Return failure from bnx2fc_eh_abort() if io_req is already in ABTS
processing.

Link: https://lore.kernel.org/r/20210519061416.19321-1-jhasan@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/scsi/bnx2fc/bnx2fc_io.c

index 401743e2b4294b2c6467f5a164449d454d3393da..a0e7764148899f6589106bbcd6ab0159a74132f1 100644 (file)
@@ -1219,6 +1219,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd)
                   was a result from the ABTS request rather than the CLEANUP
                   request */
                set_bit(BNX2FC_FLAG_IO_CLEANUP, &io_req->req_flags);
+               rc = FAILED;
                goto done;
        }