Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2657206pxj; Mon, 14 Jun 2021 04:12:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbvbA+qj8w0Je1fcRSsT8azU37RCUGZstA3h1lapwXxA3zPgk+E+HdvnZi6KU0IxA06wdA X-Received: by 2002:a17:907:960e:: with SMTP id gb14mr15181974ejc.231.1623669145850; Mon, 14 Jun 2021 04:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623669145; cv=none; d=google.com; s=arc-20160816; b=0M/qvJEDFdafgjiUk4eqH7XII8SdzkwBiXLhE5p8zHCsJ6LyMXAArsoSLAGVcHKmvQ BUQpTzbh3pD1YIhxCFiJq6oSNVoCvIkcvXyHtoBJidvuyzoyrRCVNb5jLL8AwFl6wVjg fih56w3AQ9NJJSQlB9UTgazbURs32ViWkY6XQ9p52i12N1iSAG/SBVuzyqFy2tftbq7x Wn5I4uJIGNKVIg0vPTF+NvRFhGrK08b5ZSFb8raytIxEYj2OX7vdVVB6yXBlaMJA9tjj okdZEyBvkjcA/Ddmx6YPjAy2BfimYZaM6IHbzGFxKW3vhihujjNmnQVZkrAwkB78/ybQ lpMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+h9tW51koSshM4FirLxG2c75vcEmRK8EZzacfczjGwE=; b=QLFFfHasXGlHHO2KMVKXGIz2FtehAituQpWuvH/5TwlC+IBves8pSK+Dat2NxEWBmE kf7EMdR3MGgVR3dLbL8sg/41EI8XTpxw3NpTD4a0zc8zAh1HDVSAeP/2pP0dpX976Tbw fXTAQ7aBRf5T7bLJHfYuRCwQmmHEgBSuBlF8NgVdqrREp0Ac5w+E3m+TmWMuzvKScQNX AmvCqS8rA8lALtY0HFdCRtNLdqStFByDR9ZW5vArsPFw9X8sRme+h70+4/o6ZRX+N5Am jGItb31SSgMbgiyARNqkXb/uw7XHtIkxagfYtzUsCXKIWSi+amNHp6V8odklSHAlWp3t rQQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KYGN+LC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si11325811edv.319.2021.06.14.04.12.03; Mon, 14 Jun 2021 04:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KYGN+LC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235381AbhFNLJy (ORCPT + 99 others); Mon, 14 Jun 2021 07:09:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:36640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234315AbhFNK7C (ORCPT ); Mon, 14 Jun 2021 06:59:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0B0361429; Mon, 14 Jun 2021 10:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623667323; bh=d/WeDXI2SiQXWsZKkAp0Kn29WO4HKxpw5LZgqRdHHTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KYGN+LC0mau/LIjtvvDAL0ifxIeFPkjA7dS0usSYkf1XnKbfj/o6vDqQhMW2MCCFm MNhrW7LgwjFUjwwbBvmHkI2VNzLLuWGSBpgN6tUqSrFbBfMrlrYtu4lZMmhiW5ASDK 1ElGxHzwSVK/RoT6vVa1gr32cCzf+tniWaOx647w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Javed Hasan , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 026/131] scsi: bnx2fc: Return failure if io_req is already in ABTS processing Date: Mon, 14 Jun 2021 12:26:27 +0200 Message-Id: <20210614102653.891274837@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102652.964395392@linuxfoundation.org> References: <20210614102652.964395392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Javed Hasan [ 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 Signed-off-by: Javed Hasan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/bnx2fc/bnx2fc_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 1a0dc18d6915..ed300a279a38 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c @@ -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; } -- 2.30.2