Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3837894pxv; Mon, 28 Jun 2021 14:18:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1CFtD5kbP+PZMZimUtXrzWeQVgOpIgOW2nRLb9FcsA0VUSNU+FmfcLTbgHcAT02MPsLeZ X-Received: by 2002:a92:660f:: with SMTP id a15mr20902694ilc.182.1624915095626; Mon, 28 Jun 2021 14:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624915095; cv=none; d=google.com; s=arc-20160816; b=QvGWWoEERDwVLpcqTCAJEU5kam02Tn8W+j+eMICbF7Mj74eriB3pl2YQoo1G/ojwzJ ab0qIj8cS/v3oNP2QR0NT4LKHYqD513YV8usNMywMyUXeCap+nFbnCX+1Ax/dyXLVL6E xDgGLcZaq3nhJbApfXKNmlCeJ4YkpZAgdDyN5VVVjRSrRL7Aw55p2pqDYfwxg0Y96xm7 947HC3cptayHurqAbobWhGEzZiQMtrT14ob9B2HOqA2sZiTn5q07bz5FLz22a33YggFY 8m2M/Dpmt/Tw7/ay1R5rv++t7bBxOt5wJkzybfCmY7981MuXihe637r87EhG9ZQwclvH s+Hw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=q3pzPstp2YLWjFU960aEdqdBqCU7VZCby9Y+vLeodsU=; b=e0YxLebD2Gg0aKwyF6Hr8LInbtl4WFFQtIYLjeUk9R3y2tAxgW0E7CnKDWS5c6u1ei D0GJSTaClWtwoYyVtefZaPHCodyZxDLTOfwyRHlk5IXrw9anATwYtrFn8B/z7J8OeLz/ xvVUF6iorJUT6oMgElHA40oo+8eazAdDSnHWtrgM4JtFn3iPPtiXqakSNcNmvnl16M9p cTowW3vPPq0xIlMb4z8Y7dfzY56xBWd/YkKA/C2pk7cC9gXr0j31j5ZIqiBBQiySYwJP 8YpJuj0t3v6yL1qvNDT2H+Ruzqly/vc6hypAQESOsb86h3XETLo/0y4rP7O0Gbi6xv4I YYeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UOi3h1BF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si17891812jai.101.2021.06.28.14.17.59; Mon, 28 Jun 2021 14:18:15 -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=k20201202 header.b=UOi3h1BF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237553AbhF1PTy (ORCPT + 99 others); Mon, 28 Jun 2021 11:19:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:60334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236987AbhF1O4c (ORCPT ); Mon, 28 Jun 2021 10:56:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4F35461CC3; Mon, 28 Jun 2021 14:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891219; bh=/1iDdQX0PnCizCrmQGaYKF1vahMV2H+DCi1sVGJQoxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UOi3h1BFD/e4zkaIFfhUAVqf4G6t+jO8YFiPev0SHL7Am5RdpRDs1m0z74x37yYbA 2pKPOovIxOtZE/yOQ9pShh1dsgKuf0mvtsGVhQP5/xLRM+uJDli2RMceTTRX88wy2U oE8lAgoW1UzfhoQo7cqy5K31/d+qpSeDWrljaSFrBJRZa9vsfLTqZJNFDushoeFIZy caUyI/DUeErtWHnwATv1y9bywua8XDclotlAIpuv0JnkD1grQyXYunYVPx/UPXaVhc UKUj22/LXCxl7uNCRoppU9OjZr7JGplYL5YMtgy9yf2F+Y4v3XY9bNtxt1MlGSfJz/ ltJQAfZzGkiyQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Yingliang , Hulk Robot , Linus Walleij , Vinod Koul , Sasha Levin Subject: [PATCH 4.9 16/71] dmaengine: stedma40: add missing iounmap() on error in d40_probe() Date: Mon, 28 Jun 2021 10:39:08 -0400 Message-Id: <20210628144003.34260-17-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628144003.34260-1-sashal@kernel.org> References: <20210628144003.34260-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.9.274-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.9.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.9.274-rc1 X-KernelTest-Deadline: 2021-06-30T14:39+00:00 X-stable: review X-Patchwork-Hint: Ignore 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 68b41daab3a8..bf7105814ee7 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3674,6 +3674,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