Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4118191pxf; Mon, 29 Mar 2021 22:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztFFRpMpP+DPV7q80+RI48fU3ZHV8o1H/cNpQIXsq5EbtdZ4Lodp5vHQ3H7tbo3HgojVli X-Received: by 2002:a17:906:aac6:: with SMTP id kt6mr31914251ejb.260.1617083208771; Mon, 29 Mar 2021 22:46:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617083208; cv=pass; d=google.com; s=arc-20160816; b=zgId2I6ZKRUgPpVeDp5CgKr6auFxIQodcXSt/ETfGmiTYbzKffFNX3rpYHsoqVQAXh sUUN5XnHh7AWz27dZWTgpxN3LrfOTor5imkPJnpM7S4nI0nDgltRlcaLkbhsVnAMrdQ1 SysMXl3D0j0gFmQQtRFpwBOa1fXxrP9DFeib7cV1t93CxpvwSns6s8jSkRig4oI9+/Kr uTEJkyBHlEqXgaSHYz8nyZ0KTeq6h+Hvj+976AkCwI0bQHpxj4J5WqnT33u7lnB60M5D MrmYBTaC/w2+I0DfSAM5Bj1IWM+ZaoviLs3waZ7uofIxc3YPOWAxW0Z8wz/xJYeqbdOp aq1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8RlHMDSypdQSJYG82fSLmpTa43T3LOXPnbT839t0l00=; b=p6v60DWUhQDQgQwwlVg9itv7rMiLTZOE9NostAuOvQF9g2Y1kQedSQB7ZMHbTgMfFt F6XY/eNtLyKONoudIACA2kl3sKFwFrb2fzS9XLEbxEnLzF9K2PWv5vxFKOlHcahdEt/L B3DPqClOMqdWKkD56NT3j3ykEYO+fcZ69527oDmVOyNjlo/oPabxmQ+AmQ7jlj0j/v4W BQQq+cCyQbkd2f8IF4HwVhHAzk2VaKl2XFn0JKXacoBK1IHcUVm6AK6tKrYrIjq6oJ5O xQsI5aNlx+NJtcd41l3BJuXfYb6XKNww8yLPxPQNUn1kcuO+61xIDAq1Htgt+ynpvbuE TKgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YiDJa3HY; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si15769201ejd.203.2021.03.29.22.46.25; Mon, 29 Mar 2021 22:46:48 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YiDJa3HY; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbhC3Fp3 (ORCPT + 99 others); Tue, 30 Mar 2021 01:45:29 -0400 Received: from mail-eopbgr20078.outbound.protection.outlook.com ([40.107.2.78]:25454 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229667AbhC3Fox (ORCPT ); Tue, 30 Mar 2021 01:44:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B1goNuVOOojcg49ZZF8KNrAO5Sop6kVl/ptwmhYEjSQcylX5TtwrBwZh+vetG9dU/Y3hwFmj138aQB/QB3HtSApFA2j0eeRfsR9URhZLQkVyW772Ib7YxxE8vFThbOdjN/6RgjT1TWL/7QIcIRt6CZWVrOBUU6Qs9faLLN+5MYVR+f45KJasYsPnUgOrh9uo+eYI0Q2Y7aZPxgrn40ksgk5NVRGFvjwg4T2ajD/0qJDBDy22/ckg253YB5Bmf+Fq3aZg8+Qc3KdsAIVYK8sF4vSxN0XJEuT52pwsUCK7Xi0HMJWznpgFtSPUsxul9/FsxRN7G0NTFutbrIm43w/diA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8RlHMDSypdQSJYG82fSLmpTa43T3LOXPnbT839t0l00=; b=F/8H1sgXRbHOgPNwbow0DHTVc/mgQo+pqjEzJQAFLalShhzZBpBUJJTPZ1K58ErUPPP55CCOb+0gft3xdNMQ8GeK1cfptFqFkPRjYDycdmUaXoGnEhRrVFARzTni7s9PJUc7utDhvoso7PCoJV4L7xevf5rngVkSI4o6JokknFlQalrvaBU1Gvb321M06Q2XeNPW/hywGizUE7YCzomMe4FCWu9ZmCTIw4wLzE9KHqvyUd+V7jBKDjSb/m+nOttT3funH2MIkEnT7uDbGgv3FokaDd9jEiWL4AfnKA5zlqy9M2Zxmp1jHXihXnaN5cPYGH2z1jMpfF4whHwWUMjiTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8RlHMDSypdQSJYG82fSLmpTa43T3LOXPnbT839t0l00=; b=YiDJa3HYK0z4XRwb/XVAi5ITtbW8Pd98H76QKtSU64m31cgEfMpTG+HfD+8YZLPEAHzLW0gV9yvgHGWEp3kU40znmCrqNjDslxNZzVsLsbQnAa1g86GWqMSESGRwxhT6hMbodH7A14drLwPdBishDtXEkh7POmiiBWOphU+I1Dw= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4489.eurprd04.prod.outlook.com (2603:10a6:5:35::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Tue, 30 Mar 2021 05:44:50 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 05:44:50 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V2 1/4] remoteproc: imx: add missing of_node_put Date: Tue, 30 Mar 2021 13:30:32 +0800 Message-Id: <1617082235-15923-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617082235-15923-1-git-send-email-peng.fan@oss.nxp.com> References: <1617082235-15923-1-git-send-email-peng.fan@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0055.apcprd04.prod.outlook.com (2603:1096:202:14::23) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR04CA0055.apcprd04.prod.outlook.com (2603:1096:202:14::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.25 via Frontend Transport; Tue, 30 Mar 2021 05:44:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 281cb875-aa2a-4e72-f0fd-08d8f33eeef7 X-MS-TrafficTypeDiagnostic: DB7PR04MB4489: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DvB5iUKQofmvhvXHEHdnUkTRYHbH6BifzTw/snivHKl3AzqdY9o3v+r6cvi45Y1njnN5BxsARujVqWK6FK85AtuqnhS4xmHtSDxBE2obfu9hFRQT1zhXAne/UE2ONKQGGeQxD9VlHP9dWAMdS0zhYFMEBqGpD5wErXZrX/w7n6dSxFarVgxXdqz+pduP3F/0edifFHD1jxb7oCQhG5ao7euVG+DWvqau0DwjFIaloGxjKCOwu4c8qbbjZD+U2Z0MZR34fYQrpuOyLN+yQBiwunK+RK7d3zfx8aMD+cC900tigSMaA73fLiA8PmwX5Z29WEwOLqhQtBar7XRvmxxaZKuQJ2t+cl/FCo703XhsQDfxUSguVCg0F/dCck15QnKwohV1qDJbHMwTwmbgbZMsrJFjdDPiPw3JXOP+LFIzA/SsGmLogG0m9b6Nyfs8vJr8V4oOmhNOTKHtl5qyJgyljceqqJuijadAUYKJNqEdEOcp8tNuqdiIXc5PQwjJWqvI3AuvtEnInW2Lk3LnVv7MlIgrTySjIqyIv+CutMDBR9379HyK+lnHPMjDTme57vtpva8Rmjt2uo8+xBJAvf8VLhaUbVV7iHUBBseFQaYy2YJIPQe8m9PgheNhJLyKtnPVZpI2UFUkC8SoGc9SMuogt1fc30IMbMZBvtquJSHVwGI8+EuKBG85mswaUHMC8fZi X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(366004)(376002)(346002)(136003)(956004)(2616005)(86362001)(66556008)(2906002)(6666004)(9686003)(6512007)(6486002)(26005)(66476007)(66946007)(8676002)(186003)(69590400012)(478600001)(4326008)(6506007)(5660300002)(38100700001)(316002)(52116002)(4744005)(8936002)(16526019)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?mLsADwSQb+oaZJbSTu8VrE5+S5MByIG5fh8tBtU3/6+lUucWuxmAbiOoQwwP?= =?us-ascii?Q?rrTEkX48dSAhSoGpTkbwsWFkSeKdQJznNt9yVV5mGwHvZEnRJ03NSOkEgb7l?= =?us-ascii?Q?MG2KlD5MUXqtistDlGjRlSQjKoytyaE/HSgRyh+XyUVmKENXFtciOc+wTRmS?= =?us-ascii?Q?8JC1eZ9F01BSYIo5PvqX9EkgVgjyDKeLx/w28CtRG7A00ncm14vTtixfpBjM?= =?us-ascii?Q?yq2lE/ToVMuWicxcaZZIv3RvoJnlWPDqdHtwP5w8zNY65JnnyXFsiFRECZ/E?= =?us-ascii?Q?iwwZAJCUP8beHm0JmS/JcrPvBgJ8L5tpaWxXD6SylbR6pzNVMs5pslRW+irW?= =?us-ascii?Q?JSOr0XW6aTXZeFfSSb5yk+yT2/8lQaMjPpVBst7FxExwFd5yIDPhc/61t2nV?= =?us-ascii?Q?TU3/bGlZ3NC+sWiZI2iO0Ev/lallXRSRjgf1sB9NBYBK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MM5C?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 281cb875-aa2a-4e72-f0fd-08d8f33eeef7 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 05:44:49.9172 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8X+lXqOWkR1KFmFc6zMO1msC9K2v87zEIKiTDEBhXtwmeN2bnhh7A7gDkaD9CWoOkqfhT5LVl3zjKNMkmVW5OA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4489 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan After of_parse_phandle, we need of_node_put to decrease the refcount of the device_node. Reported-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 6d3207ccbaef..077413319f58 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -459,6 +459,8 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, return err; } + of_node_put(node); + if (b >= IMX7D_RPROC_MEM_MAX) break; -- 2.30.0