Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3535882pxb; Mon, 1 Mar 2021 12:36:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzioD2Zz4/ARw//WmwswPjrndvMDtqR3LlALwaC2LhxXjyIWxre2zrKvrTmw3sxe686WMKu X-Received: by 2002:a17:906:b4c:: with SMTP id v12mr18045413ejg.330.1614631014817; Mon, 01 Mar 2021 12:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614631014; cv=none; d=google.com; s=arc-20160816; b=ujE0hwAW85fX6J89gXTaXPpBlHZiFYLElVVjXE0bQ62Gx2smRT8OrsLA6CE7bqAMH8 +LsHjHwD6T7tbwODYuDPid1h7ozDHg1GMUEtDhBZegkONR0YMKpeOcrd7tUyonrTznQ6 uvlW8lL4wcq7UFSgHi0QGBV//HvTvOo60hUXJ/Vr+zBqA3+Mtmam2NwKQjn+fCd3oz4S RuxN4gB/QlqrzGyYXnTmXDij+w05bd1bBPyDPLg3mAbzZAQ1R1NKiPb8oadC37GEyYRm dmI6WmrFsMObJ4httylUAs3nVUqbWgiTiCuftlrZpaTIkO3DGwzr+ZN5uZgkz3meSRVc Qx7A== 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=1x4RZAsfFBSFIbdr3RFKKewpwXUDeeW5oZHrJ36gR94=; b=Py7fEtbXKbJX3rUE4bw3GAfh62aBk0iGnNb8jZ64UCEZOlLEemItg9oKoWx0UnrHqI CYwSVqewwYag+N18enfOlaGJFxRSFE0JvueDDat41RLCM4XkW1cHKjXR/eYCaCUbKlA8 /777fRdIsgdS0+6AiqwWnTBKsqTYmcRptmoThkAC/GBcvuY+kn4Yt2PBC/nacZgf4xWV ZdYZifie1rjOicvFKWIKhdUe3VEjcy9C7FlmfUNCD6rOEmYVIQcyNWlAGM/SMc2WOj1P WBaz/+2LYh5SZAw3TlEvT8+1hopNYfd741VnNVAbzAbBeujDlKEt+gdXdbabPQ1J/stX NSUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c69d59PP; 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 v14si966564ejj.133.2021.03.01.12.36.31; Mon, 01 Mar 2021 12:36:54 -0800 (PST) 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=c69d59PP; 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 S243512AbhCAUdZ (ORCPT + 99 others); Mon, 1 Mar 2021 15:33:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:36348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235345AbhCARHj (ORCPT ); Mon, 1 Mar 2021 12:07:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D26D665005; Mon, 1 Mar 2021 16:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616840; bh=BF3VPEwwcLfCtWzdmAPkzAZWuW/xqEPWF5cHpl2DP1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c69d59PP+dwJfaAdanZJCGhFsYKaUBe8Ro2AtDNCwdu+/20yNsHPSlKpMaiBbGkZe P1gKXLMPKuNbCkx8y0QfZrnErHH0b4fBltauIdGSgFYDteCMpP2dEDvwLmp2P65R4g cnSJh7ucvglV8ahlJlDY3uSVgX8FelIZidnjR/SQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Vinod Koul , Sasha Levin Subject: [PATCH 4.19 113/247] dmaengine: fsldma: Fix a resource leak in the remove function Date: Mon, 1 Mar 2021 17:12:13 +0100 Message-Id: <20210301161037.205399370@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@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: Christophe JAILLET [ Upstream commit cbc0ad004c03ad7971726a5db3ec84dba3dcb857 ] A 'irq_dispose_mapping()' call is missing in the remove function. Add it. This is needed to undo the 'irq_of_parse_and_map() call from the probe function and already part of the error handling path of the probe function. It was added in the probe function only in commit d3f620b2c4fe ("fsldma: simplify IRQ probing and handling") Fixes: 77cd62e8082b ("fsldma: allow Freescale Elo DMA driver to be compiled as a module") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20201212160516.92515-1-christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/fsldma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 1117b5123a6fc..e3412be957122 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -1318,6 +1318,7 @@ static int fsldma_of_remove(struct platform_device *op) if (fdev->chan[i]) fsl_dma_chan_remove(fdev->chan[i]); } + irq_dispose_mapping(fdev->irq); iounmap(fdev->regs); kfree(fdev); -- 2.27.0