Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9284447pxu; Mon, 28 Dec 2020 11:22:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQmhpE5X2lRUT2cLdLoPo0PQE4gDLqo3Zah8b+Snru849HPk3/kgpAECxASocM6dtZJDi4 X-Received: by 2002:aa7:dd17:: with SMTP id i23mr43312416edv.14.1609183339303; Mon, 28 Dec 2020 11:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609183339; cv=none; d=google.com; s=arc-20160816; b=L62OgYea26JkzyfpNbDMh+2c4xtte+K5Ewlol21COTD5F3Df0M02BD9ibF8QcdTQp8 F8aOllW9sOQH5Zv2GVSR+jYbhZGXGpHuZbKgnocWnRb1yVSjY1cECDAAPKMiY7v4RPss Sygf8FM2hGY1Nuig9ntZlpAltFbEtptWqqKe+QBLdDJplW2Fi4UeEn7yFkFQIKVO0t8f gP9th87vZAbEqo6+r9nb724CjqEd+rpfu3heagsb3IrWicILDBCll4ltakDXsXFxPxPE qQeqMTHUTTZcFEqj5oW/iuTCzn3S6iddc2MfkRjyR9nYWXbsRGeZL9KuFPtTTEIXjb0U CNWg== 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=armkzxNaS8kD8AWtRuOGuDykMBlb4oyaK0uDsCkZTUE=; b=JkCvZ2ZuxSkdqGEBuOBobqo78RIByr2wjo3bHTNVWnNx9Kqk/Ju4sK8XuTZVHQ42ZS QbXljkBndMAipV8aXB0qY90Z5xtsvu2u8gqJIzlAugB5nY3+GADllGODj4q1xknxAR3g 3masH+1+pSCMu1JCp7BiGbW/iAs4aopA3tUDTVrpJPuAxeCze9DWsKMs/dIMv8LaqO0K aGTxlMOCervqbczwa3OwTAEtnuJlXu6Mi7UTxRfD0RG15tVzaJ1KhhorDkR4ExLG/UEM is5QUw9ShfsW/Geujw/3Mqic8rbqGUnfxxe/mI8lPtzMYwCjmM3IGxSUod9ZugWvq3wo l6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EmFD20L9; 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 t6si18253936ejr.116.2020.12.28.11.21.57; Mon, 28 Dec 2020 11:22:19 -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=EmFD20L9; 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 S2407857AbgL1OAQ (ORCPT + 99 others); Mon, 28 Dec 2020 09:00:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:33988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407492AbgL1OAQ (ORCPT ); Mon, 28 Dec 2020 09:00:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23B5C205CB; Mon, 28 Dec 2020 13:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163975; bh=4WkGcy/+keBscqkemL2ALHP+oJLlWlSiD0U4fUeB4C8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EmFD20L9zDveAYp2uTsC+EKFlZ4YK7rDH5cNydunyONYK479SddCRpiEvw4FPrcNI tOTLvHTbmxV3VXagGfE6ujHm0UKjkew5yd97hhvoY3FvmRHf0RCdDdLn8rNPgzuI7Z bUNPICSCCjibsYrDWQdTEtuUlvfruR+Z0Kq1y5C4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.10 009/717] soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains() Date: Mon, 28 Dec 2020 13:40:07 +0100 Message-Id: <20201228125021.433809342@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Dan Carpenter [ Upstream commit cf25d802e029c31efac8bdc979236927f37183bd ] This code needs to call iounmap() on one error path. Fixes: 2173fc7cb681 ("ARM: shmobile: R-Mobile: Add DT support for PM domains") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/20200923113142.GC1473821@mwanda Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- drivers/soc/renesas/rmobile-sysc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/renesas/rmobile-sysc.c b/drivers/soc/renesas/rmobile-sysc.c index 54b616ad4a62a..beb1c7211c3d6 100644 --- a/drivers/soc/renesas/rmobile-sysc.c +++ b/drivers/soc/renesas/rmobile-sysc.c @@ -327,6 +327,7 @@ static int __init rmobile_init_pm_domains(void) pmd = of_get_child_by_name(np, "pm-domains"); if (!pmd) { + iounmap(base); pr_warn("%pOF lacks pm-domains node\n", np); continue; } -- 2.27.0