Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3884491pxv; Mon, 28 Jun 2021 15:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA6B5XyTzrw1h2V1oqbx/eUYE3xVEzKpOEU/o1USEN4IPqehRK/Rxddo92HBbODrrhcbvF X-Received: by 2002:a5d:9a97:: with SMTP id c23mr1427521iom.38.1624919971039; Mon, 28 Jun 2021 15:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624919971; cv=none; d=google.com; s=arc-20160816; b=zN284DFyFXOlqzv3hcKkOLJN4iOFcQYQrL0GvKOHIh6+r1WqWuqZ+uPnweHNV2gdkb +9Feh1SKaeFBPc7w34qBgw4c4NcpQiPav3W7Vig1A3o1U6jTpMZpovnGySvb81tFuEfU kL7xuX9yRLbIT1Mti+XnnlWWLCFVXmlSwrZ10il0KbZC30S0xPS85yew+/+6o7jq3sIu 29FmNIqV3J5ZagDdQwJDJQUhH8opG4dTL4Y0iz4SpRDzoaQBRmHbInLPC0c4MdsH13VO P526/ASQ1cohpAIOeUQ4Eo72KoFFqf743VWgaPv6I5wHomFaXNb3rBZaxk369ivC/6ek nqRQ== 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=UJbXkxRSwsYAktHXpeCjuQMFPSdr6ztai1Oei0hW0lc=; b=xGfEahWdJQvyyFhuEZmLtn5XrUoKU/VC2Q6TY7tomBO6JXQ6QZHCMmQbjZkkg6I5gm OU8YeDIPD0tSt67eHFovJKpTOGqoftnluSh+722l5Q/U7dXB6XbIuzUdvzyKl84gd8UO BiFVIQ85bLp/ZzJToRdYV1lqJpelYuq3OS4Mjio4m/DN94LcGAmT7gs2jvu8uKPk7CHZ DDTPWG8eZ1Q+2+HQs20inFipu0w7pnmoGrcnu3cdWNkrV+CVpuXbZagj41z8pI88X8aY 7DaU1He3uzovKXWBjIVVPROyygsJIQEL9l+dV2v37z6glYxSdktZLVPVpOHyrrGdMQHd D4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G5PsU8C+; 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 a14si21864220jat.22.2021.06.28.15.39.18; Mon, 28 Jun 2021 15:39:31 -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=G5PsU8C+; 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 S237744AbhF1P2j (ORCPT + 99 others); Mon, 28 Jun 2021 11:28:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:39674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235733AbhF1PEO (ORCPT ); Mon, 28 Jun 2021 11:04:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F43561CE6; Mon, 28 Jun 2021 14:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891390; bh=I1U75O5S3mjo5u3OwmNXu9uVwORj9PVFSWJjhAmQZuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5PsU8C+G9aOLeC0zxzsg9opz6c24x/gnfq+IdQOlXM4S9auDFoEvXw3CanHRX8YN njmGjncopmv5oft8OOH0Dsc2Q6UanP5xtk4mTFwnasjKDbPn6lPV1HSOzNJoUvjw2T 1DQrk4pf5P0bPHtf0TmSvD3k3lzpO9XQp4JWfAT/BOxXFcRlWUFZOLXaGpa3+X5mgx PLJk2Mu57VtX0F55dR67yrSenh+BLX/pg4sSV6pQqj4DkYI/3GPy9zvwEHGseIM2BJ jkPKz+wgY3mmgh+6gFqNXMxT7f39CExbisZwPWOFCvoM8gefyYOCvcRUrfviPcwrw+ QhL9rzHUFc0Gg== 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.4 14/57] dmaengine: stedma40: add missing iounmap() on error in d40_probe() Date: Mon, 28 Jun 2021 10:42:13 -0400 Message-Id: <20210628144256.34524-15-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628144256.34524-1-sashal@kernel.org> References: <20210628144256.34524-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.4.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.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.4.274-rc1 X-KernelTest-Deadline: 2021-06-30T14:42+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 0fede051f4e1..e6d3ed1de374 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3715,6 +3715,9 @@ failure: 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