Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp838125imu; Tue, 11 Dec 2018 08:19:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/VkMpnZG5odToiiqJhLUU5XYylUQuvv04y1JhxeFFFgnd4MKyaSz0EgNZrS9fHRVgn0m1Sh X-Received: by 2002:a63:b34f:: with SMTP id x15mr15356643pgt.243.1544545161231; Tue, 11 Dec 2018 08:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544545161; cv=none; d=google.com; s=arc-20160816; b=U0hx8JbLegdNYjLaEjH/RpKB7hIs9cB1Di+cHQkd05ND6KXAitaDkfjO8yFuhOC1Mb sPB0CJnMPk3jALfQSEgcNTkorL1GjOUoqeN8k0LwBR0NhAj8aOZ4UuGNCT+q1kMZnGgx KK2RqfSXO2O/aHr0T75vU/CNUaIK4ZMevKTezM16bZJuGrbCzKfKEoUEC+OBIc5vi3v4 yafDEOareGctAI88JjJ5BW2sP7JTrBEIhBL4oovGbXEvNsj3s3W1+KrpiH+YQWMlO4CP DW0EbgkF3kTe0IxVQOSanerla5Rn1GHeHfoyTMNuJ+Jn91L47gK4pWYSY/fMG4n5FceG jXxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VSSA/eJiCVhURtJmVdjeU3Uv0OLcZQL0CdTvtKMApAc=; b=z6uAgiRbZKArm7Tl5fTxNJaqxuEcAINDVEFf1cFhLMKRxGu4asgAzp0nnKmBxFaDUy Tnl7FPdL6XuHMSw7WCYatBQ8yhlAV8Q4ppDL0ujeUFly/OceFJAmtJhnP8La09bKji3H ldnaGwHasLydiqIYoUfjE+Y2WCfKhcGrD96fraETE7gyvCfBCJ2XPYNiho9L/2sseRpi oJJg7IpS3d9ORtc10FPy9EK7NDs46QGmHEP9l7nLYqQ2XPqp1kosCydRRXDloAR11CHh 8D00d51M1yiSnA6F60LWOnVBUQjQPsW4O31Zeo0U2MzQVK1MYeXHdczwKZsA2Byja+p4 +U3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U+hKwPsc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si12736587pgm.238.2018.12.11.08.19.06; Tue, 11 Dec 2018 08:19:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U+hKwPsc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728485AbeLKPrK (ORCPT + 99 others); Tue, 11 Dec 2018 10:47:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:35530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbeLKPrH (ORCPT ); Tue, 11 Dec 2018 10:47:07 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 C8D952145D; Tue, 11 Dec 2018 15:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543227; bh=+tDiGDUrpjcNjsU3ps1Bta9sIwPnUrXZhQ5sLItSs+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+hKwPscmGMH/6Rc7FjstX355N5LttObtg41OP2EAq34l4LDOYm4W/HGgAbh+IYr/ QUoR26p6hmMFAce9fLSm8jjhkeuS79LtFkSJ37iKZ/zBZOoejCobwSyYb5h/ZS7Cix hN4U9WYj418xdY6/Xx67jdgronIQ/BO7slsdrghc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Denis Bolotin , Michal Kalderon , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 62/91] qed: Fix PTT leak in qed_drain() Date: Tue, 11 Dec 2018 16:41:21 +0100 Message-Id: <20181211151611.116801917@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 9aaa4e8ba12972d674caeefbc5f88d83235dd697 ] Release PTT before entering error flow. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c index 35e1468d8196..b8ae6ed5c7ba 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -1124,9 +1124,9 @@ static int qed_drain(struct qed_dev *cdev) return -EBUSY; } rc = qed_mcp_drain(hwfn, ptt); + qed_ptt_release(hwfn, ptt); if (rc) return rc; - qed_ptt_release(hwfn, ptt); } return 0; -- 2.19.1