Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3744049pxv; Mon, 28 Jun 2021 11:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRANvnS5qGnaJhBHcYVpc+BI8HF+RsCkStZQgaN7fQwxnHsIrr4jSJnNndcwt5zoNXxtYw X-Received: by 2002:a02:c808:: with SMTP id p8mr875422jao.109.1624905728223; Mon, 28 Jun 2021 11:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624905728; cv=none; d=google.com; s=arc-20160816; b=D4rkLxwMx1ndx5o2xlZ6PeHTYNZSSp55EOX7lieOklqINhxVuvsQArEAT7/veH9bF/ tUiaT1RpcW6xyNEd4PBofRy+bS+20tavSl0bzFvEgtpo6zM5c/Xw/KZDYDI2T+H2HdrS YfnnWuQjTOxEImXbUwZu9f/oU2A3AAFBJ6Hbg0D6qbnqr/G9H9pWNyn/oQg7pPuSsA6n xJCR48jGcm4kIf4xP9JHEBnvVxIa9cM/8ckb3cQ0sx4i2ZFgbET8JVimemBEDaq5C16K KIxfyoPjLrC4+HdYIUpaUq3B1cM/hbDHgeJ8h3AKZ1vYnpYWPsJSRMFub/3ySDL4CqM4 8s1g== 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=vbvB9An5dFIkGinbtRw4I4JFLLGOyAwhcXNnpBGn4uo=; b=qjMaMQRmjBcAEMc3Me880Bd4R/QWFvPi6GE2pR48bs3O5NcayDvd9YQxSqQhv8bjlT myZYQYYnthdZjkfQ4v0OiPm5wqHdpc7eh19reGh8gYLE65EW5Bf5DwZj0TO9SS3vw0Qd TNaCN2cHys32CObWaHbDHVHrezNEP/rfHmJWQuDLHe1xHXlQctUodudqIbWIIuanPBB1 4klZW2+eox8aOr4uOa0cTDPsa7tYwhQ26TqUTHDzbEoJx0D67BxhCQvt/Sf/m+mPcXxT ybAyXs2gf3MOGV/wMtPRnDmjLgkxB3z5Okf9Y5+iO+qlhcz/j6C9ty/M2isj6mk4yws7 xDyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GcGxcZN6; 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 m6si18250789iol.83.2021.06.28.11.41.55; Mon, 28 Jun 2021 11:42:08 -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=GcGxcZN6; 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 S237633AbhF1PKC (ORCPT + 99 others); Mon, 28 Jun 2021 11:10:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:54460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234714AbhF1Os4 (ORCPT ); Mon, 28 Jun 2021 10:48:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40ED161D10; Mon, 28 Jun 2021 14:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891007; bh=hTkNF0HvWXn3x7IYcVylTQZqlyN/pW/R6aGXvTZ35o4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GcGxcZN60qgz7g89F6YqAJb6GnS76ZUwwuJguNyr5NSnRi8WkRqVyJiAa+6CSm1m1 RCt0cSwUKRwwh1CT7ci19IJegHVNzvaPnHRdHmy/mZ/6ErSyFlnlc1hR946RW0blyw MaDhUS+wF6yllv6UsyJxwZNwq0ezI+5vUv+rwuvisLQDnfxmzJ1CAph/OkaZLOmoEr lSTXsG3Xwq7PDw+G9kagWfVpiMhMXvf52X/LcIRlWYUaptAfzvUTR6qipLfa4nQBy5 p2FNqjISGTyUMVyfmZHSNb5QRDGyHFyVX2QHX62ZJFACc/4wDlwtMtGZvr73eWFWx7 7e49Ze3aWLCzQ== 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.14 20/88] dmaengine: stedma40: add missing iounmap() on error in d40_probe() Date: Mon, 28 Jun 2021 10:35:20 -0400 Message-Id: <20210628143628.33342-21-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143628.33342-1-sashal@kernel.org> References: <20210628143628.33342-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.238-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.238-rc1 X-KernelTest-Deadline: 2021-06-30T14:36+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 90feb6a05e59..ee15d4fefbad 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3656,6 +3656,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