Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1121605pxx; Tue, 27 Oct 2020 08:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcQue7T33lexCoxRVA0vCNQkw0hToliRvTD2g9UboVd813ltG0viPX8hpXhkBuzZJpO/oj X-Received: by 2002:a05:6402:1585:: with SMTP id c5mr2946304edv.278.1603813481367; Tue, 27 Oct 2020 08:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813481; cv=none; d=google.com; s=arc-20160816; b=A7dZEVrzbulvfiQoqWhGpV+j9YHxNxMzzHqnhoHVIJ13/Zy8PtanJ6iesWlhYmDFPk xhs4NTWIshoe4Eg+ucRqEkFTbOgFamLN8U/iZhJvgymyxZ61mrg82DQE49rLOst1u8M9 viZ8c7tSA/I4jFbuk0y3saYAyiz3qmvkhIve08EoIXLJ9iOsJaKMm8Fz5ptrn329bVBq NzEQWfCnY7Ey45O4jJYK8rKlejWZ8wU/wNLoeMgiqZGgAJEUb2fOP/28SnnrVb6oDlnt 6vKWJPfGUtwINCjjvzRtzfHKgRXpC9oH0ykFGoHUIKIk1etfjNk5l+VxB5WPfvG86Ala iAtw== 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=YNhxeCAFOAfvPycZfGqV8YBkUI9lrmWu9xi1y99WMnM=; b=wOi1xQAVd+bZD1Omhe67Pw10tlNctp0DWVuIaZHrAofjdlpOEOXuFrh3gslxSwxR+x Ek1kP5BtuMKsRtyWaZNGwnXlxPupDiztelrkRZpX9kqIrBm86rpEPqQWAXtlA51DtdVm F8DnZc9A9iPPzpHeEBU2jcJuXEsq3E/wUoVQeSk4Cbu3UIdz1y2JarjJJBzFWUL28Oyo QCdH91tFGCySYlyRYCRBhJvsSU1A6UYXc0eTYJ4AAQDO0k5+NwIbCKCNx9GLrHwgZ+MT hgGS2lFG5Bh6Vn4kkff0MnNNazetyi/21ZsGnoPgXxSD/EcLCwG2jkZK9pGdqGs8XG4R xy+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kFI4UA9U; 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=fail (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 v13si1194814edy.123.2020.10.27.08.44.16; Tue, 27 Oct 2020 08:44:41 -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=@kernel.org header.s=default header.b=kFI4UA9U; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764908AbgJ0Orb (ORCPT + 99 others); Tue, 27 Oct 2020 10:47:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:47230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764766AbgJ0OrX (ORCPT ); Tue, 27 Oct 2020 10:47:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D080D22258; Tue, 27 Oct 2020 14:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810043; bh=dXyW51y6NN86Vgg+bi0TvnEdgx8SxD0zDjk5t52yqKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kFI4UA9UXH+7WJ/2uf2y1CGdawUm0XrkX31m+kbgeYBiYO93Uvd5nHYFNPKwuYRWB s6WMsAAQ//RQF/lwcdbOtvxu2yMFKEIjO820Ws/2Aiv4qVgraTt4HBinoCueutv6E7 9tmbp8qRZ3UZ/8euDH739/BTx326KaX5qBZ2uCgs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Saurav Kashyap , Javed Hasan , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.4 382/408] scsi: qedf: Return SUCCESS if stale rport is encountered Date: Tue, 27 Oct 2020 14:55:20 +0100 Message-Id: <20201027135512.727956628@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: Saurav Kashyap [ Upstream commit 10aff62fab263ad7661780816551420cea956ebb ] If SUCCESS is not returned, error handling will escalate. Return SUCCESS similar to other conditions in this function. Link: https://lore.kernel.org/r/20200907121443.5150-6-jhasan@marvell.com Signed-off-by: Saurav Kashyap Signed-off-by: Javed Hasan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qedf/qedf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 3d0e345947c1f..9c0955c334e3e 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -668,7 +668,7 @@ static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) rdata = fcport->rdata; if (!rdata || !kref_get_unless_zero(&rdata->kref)) { QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); - rc = 1; + rc = SUCCESS; goto out; } -- 2.25.1