Skip to content
Snippets Groups Projects
Commit a08d4b81 authored by Javed Hasan's avatar Javed Hasan Committed by Wang ShaoBo
Browse files

scsi: bnx2fc: Return failure if io_req is already in ABTS processing

stable inclusion
from stable-v5.10.44
commit 30030c6ff3d447900255647b9b5fc1143313e7eb
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=377
CVE: NA

-------------------------------------------------

[ 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: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarJaved Hasan <jhasan@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Silong <2019117735@my.swjtu.edu.cn>
Reviewed-by: default avatarJian Cheng <cj.chengjian@huawei.com>
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
parent 3e1e5176
No related branches found
No related tags found
No related merge requests found
......@@ -1220,6 +1220,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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment