Received: by 10.213.65.68 with SMTP id h4csp2118324imn; Sun, 8 Apr 2018 20:09:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/3Mmgt3+MSukOBMNu4t/klMcUJg7GX+HKZNIGYdE6qTcballJjQtZFJY1gUFpf9iWU9Sp7 X-Received: by 2002:a17:902:6a85:: with SMTP id n5-v6mr37290639plk.313.1523243379159; Sun, 08 Apr 2018 20:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243379; cv=none; d=google.com; s=arc-20160816; b=a/RKBaoW600h1XKdkmus6w31iSGW0TwWMoZFx9TrhnyDgli5EwZJx97euS0T4SjKy1 gd1/JFoKLpLwEo3l/NetsBpWnu4dVGD1H3JZ3mUJe9uGfUjK/CyEV5dk9THFhsSm/Opj KXGwVjjT5QLp5SjSqhh5LP//YNpZCC7RDfJFpcLQ7HFuLcvTsJodkT4V6D35zpSmMXGh deIQO/QgAnd0lM3RUDi4whLq9A+MmRrUELKe3qmHOGM/6+W7UgWth2rJJC7RJtCWfroY 4o7KqKOU7q8Y7j5mwEmVnxvnGxiF3DaVewvUf/TgyeL3G/IQ04DKGRSS6isLMLophOvI uIag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Hj1IYhqL68jUFA0ME/bCW6j30j2T0hKXTqUh1pXutXg=; b=shMbgT9+tWcXXacfXyuVwwPe9xXk8XJAf9GfnC3jOSKG4eLuWcMwWusPltfDZEnPc7 OAIwXtBScTfmegFjGdcOuBVeSSX4Ba+2KXh/cXIUT7bMwwsALpW8GXQFCm9rb7RAGKvC uc8dsP4RFceA65A5hMeRyufdW4pDuzou42jXiW2o8fUiwgSmfl28wPG79tjvSFQhXrMF PO72qq+01OJNwLVbeIqZGxSkzEUj6BHmqvYSknHbxqTjqHgSysnRQsO6mB5hXoueK70p TpmoYeUGCHaHVNz6Ovw7gVwUHGy/ioc2m0NTijUUiTENRLJqd2BgheFdvuAkZq7JPvKN ILvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Q9GkTYH8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si8003751pfh.196.2018.04.08.20.09.02; Sun, 08 Apr 2018 20:09:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Q9GkTYH8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755858AbeDICje (ORCPT + 99 others); Sun, 8 Apr 2018 22:39:34 -0400 Received: from mail-cys01nam02on0094.outbound.protection.outlook.com ([104.47.37.94]:22752 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755562AbeDIA11 (ORCPT ); Sun, 8 Apr 2018 20:27:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Hj1IYhqL68jUFA0ME/bCW6j30j2T0hKXTqUh1pXutXg=; b=Q9GkTYH8vCwgKCb3KNUfpW9U4LkjNE689RxzppOEfU+D6eH2LionuyUCRHxeqWCKx/xO/zxmV3Tq2LdT3EzfDy2DC595ltb/9Dd5fA99sFM3i4O7KYdAj8jJ7bcJlt1t3y+gyHAm3VGXZEeKuv0XfDBw482UlNyfyM9kSSRJ+PE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1031.namprd21.prod.outlook.com (52.132.128.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:27:22 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:27:22 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Christophe Jaillet , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 039/293] cpuidle: dt: Add missing 'of_node_put()' Thread-Topic: [PATCH AUTOSEL for 4.9 039/293] cpuidle: dt: Add missing 'of_node_put()' Thread-Index: AQHTz5j2Wm3X629cGkGToGbcWkKKdA== Date: Mon, 9 Apr 2018 00:23:20 +0000 Message-ID: <20180409002239.163177-39-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1031;7:tt+x2GW0GrOim8+aOz5mDDu2zCJ3bcP9//E3ki6kYnXfDPx72iAx1OwOi+w1cqcBxJCZqYZKandbdSrk2Z3LQwNjYeDY7QOxcHkhZN5MoDtusHWhntgDV8ZosNzP4TapJgMhlHbv76JWANpQIIs4gxUme50FG74ddolaNEYlVNpdolLgeJOd0EBP7h5tILVaOE8xocysDmejkb6kPhcEyYF/FSznaeH8Z2lvIMSGA4DKg9T8oqNaaGuCiLOQbBXB;20:ZAqymC98vGAd4bAnH87Vi1CBEeNCuhv8DhJZU9vNsrUtNhV+IZxb+85gZlJXaJkfI8TrD2ExaDrP8O8w8VYsTYvz1QG6wm1eh6VotMhwjTPBlmwS82z2xJdZIo6ba8th19swchLjZYiwvmffba+u8XY7SBsRNoiQPTivF/LIeq0= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: e239e1d7-3cfc-426f-aeb5-08d59db0a94f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1031; x-ms-traffictypediagnostic: DM5PR2101MB1031: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(155761271638844)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1031;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1031; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(366004)(39380400002)(346002)(39860400002)(189003)(199004)(2900100001)(10290500003)(99286004)(76176011)(14454004)(7736002)(11346002)(26005)(86612001)(72206003)(478600001)(36756003)(106356001)(66066001)(2616005)(186003)(22452003)(86362001)(68736007)(305945005)(54906003)(102836004)(486006)(59450400001)(110136005)(316002)(6506007)(446003)(107886003)(53936002)(4326008)(105586002)(6436002)(6486002)(476003)(6512007)(5660300001)(5250100002)(25786009)(3846002)(6116002)(1076002)(97736004)(3280700002)(2501003)(2906002)(81156014)(8676002)(10090500001)(81166006)(8936002)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1031;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: F3rgZ0xZqK5U63SkZVOC3a6HowEW04va2xhOam3qiqwzALxMsVRN7EC3rlFamt1sPXVKGVv4mrbmG9mmnLgfM71iYijPgMqU++zYzuusP6GIrgGMTDgW4TTBUqxohKcsZ4RgQKhiHSV69GE2cW+ND1FcjlE66Nma8tovSDPI6TBMsXCubkhd6xc+4OlSP+GzhtQE5N5oorInyBp9A9YiJRx4MO7/FfsdI2hr4BKPgUbLFYNFwfxwXaWkgzOupAFUtVePChw8/3ReeF4cIIw/d6UbA6nT+Z2NF1YW24lAAH4J/kRNmbG8pK8Ojc5u6sFZYZAhQCxE5RBtTSzfL9wc54SmRqqQd6pz//40qFom/o+Llxib/dutoOPcMpe9zkQ2/TVtNVzuo4wvZTxuJhLXnclc5dBufjMgFuQfE4QTtrU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e239e1d7-3cfc-426f-aeb5-08d59db0a94f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:20.4248 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Jaillet [ Upstream commit b2cdd8e1b54849477a32d820acc2e87828a38f3d ] 'of_node_put()' should be called on pointer returned by 'of_parse_phandle()' when done. In this function this is done in all path except this 'continue', so add it. Fixes: 97735da074fd (drivers: cpuidle: Add status property to ARM idle stat= es) Signed-off-by: Christophe Jaillet Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/cpuidle/dt_idle_states.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/dt_idle_states.c b/drivers/cpuidle/dt_idle_sta= tes.c index a5c111b67f37..ea11a33e7fff 100644 --- a/drivers/cpuidle/dt_idle_states.c +++ b/drivers/cpuidle/dt_idle_states.c @@ -174,8 +174,10 @@ int dt_init_idle_driver(struct cpuidle_driver *drv, if (!state_node) break; =20 - if (!of_device_is_available(state_node)) + if (!of_device_is_available(state_node)) { + of_node_put(state_node); continue; + } =20 if (!idle_state_valid(state_node, i, cpumask)) { pr_warn("%s idle state not valid, bailing out\n", --=20 2.15.1