Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2020131pxa; Mon, 3 Aug 2020 05:33:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDNp15gYQB3ocYFrVV2eNe1nLLll17VYksyOjtlVGoPYAo0mgnu3SskJXLPetEYysi5ELw X-Received: by 2002:a05:6402:13d9:: with SMTP id a25mr6140366edx.141.1596458030270; Mon, 03 Aug 2020 05:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596458030; cv=none; d=google.com; s=arc-20160816; b=RrfuILIEDvQPv9dpBZKgvpKv26AwQlvSynCQtgNAT3BJq+zfvXsQq1zNIF5BXIL79h +c+Bo6glETzjxFs0agsAI8ZVuxmh/GZflD9nZzh8K77XsGq3bSB5p8zm7lNZJamTLXQy P1VYK2YPGBYbYvaN2wegyOfAU6mLzHCvQv3cnKq+9mS2yLyIjqUxo1B+IP0xUOktiVgD 13LyP3rTwW1iI+AG730mW7UM30gHyWgkYEeNnGMCAnbtlzuz+YvVcuYHZpV2lSaUCb84 QOZywRZWBDmtbvrJbx6LMvCUTfouExLx/6RAz9BO9frC6s+yzGvJ4mIVO1NFKkNGYkUb 3npw== 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=DKqK4Um7n4NMYvLU8ZqvN8AMAxPGBTnkjxOJ4KYrpcM=; b=jWOQpvbifw1Y78ClgRI7DevKtP1V2ZzsPuQfXC0m1EjM81AUV6KTwuCP3QMxuVDg3t TbaDFt6BZX99Jt1ajTvZBlSnXCseFvpT+P/nxzLAHOSYL5wSpWI3I0RL04JVrQCpkXGJ 7HlZuqATp0divrMdldZMN/cvgNyGnx/B/NVfWGEJg9sRQuBlfi0HA0BlKWrpF5iMVDCv 41r6wyHEPqAkbzj2XI0hCfmnkk7ayFWRxAZVt6kzWzsfoBeM4u7Rc0eqk0I0PoJ52Q+M emit/e1aK6/Ya0nPnYAVxKqYQtll/1q1zGqRPtfNq06sjzASzwHhBMlKHP0colm5/Nvt S6iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RFu34zHQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs8si10008411ejb.665.2020.08.03.05.33.27; Mon, 03 Aug 2020 05:33:50 -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=RFu34zHQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbgHCMcW (ORCPT + 99 others); Mon, 3 Aug 2020 08:32:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:60198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729296AbgHCMcU (ORCPT ); Mon, 3 Aug 2020 08:32:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 C37012054F; Mon, 3 Aug 2020 12:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596457939; bh=V7Inx25FIvEikDAopzfi5kQvEeEprUMdU4v0oZ/86O0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RFu34zHQ98/vKCJlze06+22CBtnXjsoYHmZzsBrDc5XQE+RVyD2PQkz3fCR78gXi1 VeAXNEQUy2R69t84SIP3Te5CMPfQSpv2cLOZeaIAx45zQoGtZdW8YIdVJLNA9NOw0l BchttlkJOJxVagG5aAtrGHc5QuthluY5KRlo5vCs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Falcon , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 37/56] ibmvnic: Fix IRQ mapping disposal in error path Date: Mon, 3 Aug 2020 14:19:52 +0200 Message-Id: <20200803121852.140146290@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121850.306734207@linuxfoundation.org> References: <20200803121850.306734207@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Thomas Falcon [ Upstream commit 27a2145d6f826d1fad9de06ac541b1016ced3427 ] RX queue IRQ mappings are disposed in both the TX IRQ and RX IRQ error paths. Fix this and dispose of TX IRQ mappings correctly in case of an error. Fixes: ea22d51a7831 ("ibmvnic: simplify and improve driver probe function") Signed-off-by: Thomas Falcon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 5e9e45befc875..d8115a9333e05 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -2926,7 +2926,7 @@ req_rx_irq_failed: req_tx_irq_failed: for (j = 0; j < i; j++) { free_irq(adapter->tx_scrq[j]->irq, adapter->tx_scrq[j]); - irq_dispose_mapping(adapter->rx_scrq[j]->irq); + irq_dispose_mapping(adapter->tx_scrq[j]->irq); } release_sub_crqs(adapter, 1); return rc; -- 2.25.1