Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3923521pxj; Mon, 21 Jun 2021 09:27:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKOFT9CAPLaI7sW72ydCVSj6U1BzLTO3HDl67LxAO/6WNqhUbXpt17F/z83O5tX1LO40kt X-Received: by 2002:aa7:db93:: with SMTP id u19mr22629651edt.227.1624292878526; Mon, 21 Jun 2021 09:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292878; cv=none; d=google.com; s=arc-20160816; b=lfuk4tlHxxlk29ebVj953Ce43yUCBeHds51wwuMEZNd8FRm5DihmlaxENnCvQxfL4d ADFWDhrcJVCF0w/5mcL6GXGHqE6vbIhz2koRMsX19iKulYtXdr4HtKkNZxSVEd3NBm7A wMxDlZpPSgdzbbBEXtg8oP0IJBgZ+FNfy8z7arFOZWZDigeiPClZFRZNF/NLEeZsKDf6 QwDrRwgN7aaXkwn7x6bTRK2jB57IHoPshsHAKTmkIwi8mZNr/5bh4B9eY5ilLJfhligs cKE9wRPnUmwdgFhfW7vYhRNC7JkOEO8of1pJc1p2ZuP9drL//z+yXLDPZIeB0x9q2cG2 Pifg== 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=P2JcnNGm4dcdj70iNVvtfjqPaEQFjqkPhpMJ99T8SOM=; b=wG9kqfHO6a7n6lWpM/FmEnZuDym3We4ynVL0xXppMXQsTbFGe5OT+lNOuYPZqrLUjH j1qm4C6K7vicT5u9rKeA9gznJJSPvRiM/+RI9PPJ3+07JG845A0u9XU2mMmkKy19w/1l Y7Hcd8MCuOPV2EqPHHS0mOGOaj1tg06q6e3T6KlSQIqtiXxX6qgJYTpjYbtOmPWzWKIB 8gKtKQ6AitchA31hajoko03HpWTLehenNlWilECNpe/zeO6NEjpHHUHR2pelr2pjvYXE qv/21xcp/UxN3MXyvT9VmlnT0bLHlP0tJ6ttXlSTxTblZVdh5m70g5Mi3ksLCAiWZ/mC fIBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aLdjiI1O; 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 w8si19263118edl.304.2021.06.21.09.27.35; Mon, 21 Jun 2021 09:27:58 -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=aLdjiI1O; 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 S231873AbhFUQ24 (ORCPT + 99 others); Mon, 21 Jun 2021 12:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:49598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbhFUQ1a (ORCPT ); Mon, 21 Jun 2021 12:27:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BA5A361351; Mon, 21 Jun 2021 16:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292574; bh=OIQez5jiBBZbgIP7ajsjYJhba/6oQPoC0XzPK18SWx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aLdjiI1ORp8ACYB0ALlHW3GjhFfH7CqZqCfz5WtNe5Cv6N/2Df+PLbMz3rebOX2Lj gWfGoD3tCj3oqt59OTHnr89IOoEDgMs3iXJurRHtnY5zQachPjOEA0ELQxD0BZ+oXa xnQK1MZfRZOSu+BVl612fwqB9HPME5RpvkHc88eU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Yang Yingliang , Linus Walleij , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 007/146] dmaengine: stedma40: add missing iounmap() on error in d40_probe() Date: Mon, 21 Jun 2021 18:13:57 +0200 Message-Id: <20210621154911.499998039@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@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: Yang Yingliang [ Upstream commit fffdaba402cea79b8d219355487d342ec23f91c6 ] Add the missing iounmap() before return from d40_probe() in the error handling case. Fixes: 8d318a50b3d7 ("DMAENGINE: Support for ST-Ericssons DMA40 block v3") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20210518141108.1324127-1-yangyingliang@huawei.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/ste_dma40.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 77ab1f4730be..b35b97cb8fd2 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3676,6 +3676,9 @@ static int __init d40_probe(struct platform_device *pdev) kfree(base->lcla_pool.base_unaligned); + if (base->lcpa_base) + iounmap(base->lcpa_base); + if (base->phy_lcpa) release_mem_region(base->phy_lcpa, base->lcpa_size); -- 2.30.2