Received: by 10.213.65.68 with SMTP id h4csp1668878imn; Mon, 19 Mar 2018 10:06:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELtzOqw7SaG82l1E8phxLG/1sP+AeqnnnwH0n6j/8ZrDQS6ntw7Fa841HjmPH5R8wEPB3vrQ X-Received: by 10.101.71.141 with SMTP id e13mr3110387pgs.317.1521479173636; Mon, 19 Mar 2018 10:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521479173; cv=none; d=google.com; s=arc-20160816; b=N2CGGNS+Iet+DPYaszLBO5z0aE8lOIJGOfBasV21D6vHJ81sZ5L/ZkBBj8K/fs37hb GFxDEJ4JWTBZQQPNDpfkkPmZspd6KplMFuQ2n0mM9f9PeGun5utxIjYNMzm3VQztaN8J I4xECB170JSdsQSxtG83BHxlf5TCPhTEzjObI3Lfyu7GxAfLUdYc4GL9etjLz9Fdf8zy rXPgb6n3pCLvdUG/7gG77Q5ma1N3m36mqNjfXfEKipaKIprIqaedhu5p7LMjdbnbehHh iGeZI0n2BYlYuJrfpDVQ/qWVriqkr5N2ViqTBFzqeeq/46qltAX2qMoz1zn4/XJm+p0u bKdA== 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=PYI25GOEYtEwLiz6aWIevU99da9KRatjgjtfvwsiR5g=; b=APr9TPRhGvRAjaEjUy7Y09zhW+EEy8ojgh5GwT0Yks2mRjkY/bq4EmZD4N8NRVwCjh 4lq1shd9yL6I6wCRhYhjpJAnx/koGUmQ+Cek73B0kCavWwCkl7WStWFMB5niYYNYV45L sod+5fub/ImHiMXPhvHoYcacvCN2ila1UWilyxgVvfK8PD+w/GtH5QeukxUvLO41d8S+ 7gqna9FKDyArjybSCTcIN9qT19821uzm4eT6mqcOnxuJ+I9O5IRbJSNVZfOPGM//UrPN 5nNWfpWkfJVv9QsKKDhmQLRI3pAyhQKzJ4M5+Uyjrih8/ADSoOfJug5nvsEHrMMjvumA WU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fLNjcqSt; 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 i3-v6si309666pli.274.2018.03.19.10.05.59; Mon, 19 Mar 2018 10:06:13 -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=fLNjcqSt; 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 S935113AbeCSRCC (ORCPT + 99 others); Mon, 19 Mar 2018 13:02:02 -0400 Received: from mail-sn1nam02on0118.outbound.protection.outlook.com ([104.47.36.118]:57012 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966702AbeCSQLD (ORCPT ); Mon, 19 Mar 2018 12:11:03 -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=PYI25GOEYtEwLiz6aWIevU99da9KRatjgjtfvwsiR5g=; b=fLNjcqSt3uefitJnfFgRwu91KFFL0kn00Sy+RxKzKnN7vUgdncziNgokGbOIJD3FVPKF5+xPoFLkH87mU6vHnZDy8anKINTToFHeEAdVml7jFvAoACt8EyG6LAGjsOnzIXl2z5fplT0OxfnY8xPJc4UDeP2gnCSdoTY+hNTnQZc= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1095.namprd21.prod.outlook.com (52.132.130.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:10:49 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:10:49 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Christophe Jaillet , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 148/167] cpuidle: dt: Add missing 'of_node_put()' Thread-Topic: [PATCH AUTOSEL for 4.4 148/167] cpuidle: dt: Add missing 'of_node_put()' Thread-Index: AQHTv5yEycSkrKtB506IgDrY7h6WqQ== Date: Mon, 19 Mar 2018 16:08:28 +0000 Message-ID: <20180319160513.16384-148-alexander.levin@microsoft.com> References: <20180319160513.16384-1-alexander.levin@microsoft.com> In-Reply-To: <20180319160513.16384-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;DM5PR2101MB1095;7:gonbH2XywMZbqeIgznuCIcHpYu4wOz/H1jLWdH9xBWgvjwh+jwQ2Wdl2e5wbVEQ05ActIcRuFlPLw6Vbd6Qd6OPwCUhB/YHsjYkDwXcm+yZg7gzBhk5jIKQsHRkQkDCt8Gredh7W2pD6HGpHMqmoi/e0CeIwEA9bncppwkL4VuYdWIkL0zJQHMBkTtqdCQdCV3tzWVXblBUpkQkQwpn+oZ7wML4pZ/cRiENeD6jXwNxtx145eqTPvi5jJoU1llk4;20:iNxBJMoqTRq6ehpTvkOyTZXMer5Y08uu+Kq5SbPFS7GLNbQIk0Hd8cbqAsj81p6Obfbkily6VG5CF8ClKIezov/X7m1Gndn3jafmftOL6nmaJNWrYOT8bVXm0/6I+sh08AvP2yF5DS+Iz0qA0QMmkt6Pz46DpSmS6nuy6h2s7PQ= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d47bea79-3d2f-452b-bd74-08d58db3fb01 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1095; x-ms-traffictypediagnostic: DM5PR2101MB1095: 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)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1095;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1095; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(366004)(39860400002)(396003)(39380400002)(189003)(199004)(305945005)(316002)(1076002)(7736002)(14454004)(86612001)(25786009)(8936002)(2950100002)(110136005)(66066001)(186003)(10090500001)(6666003)(5250100002)(2501003)(99286004)(76176011)(86362001)(4326008)(68736007)(3660700001)(105586002)(8676002)(81166006)(81156014)(106356001)(3280700002)(72206003)(10290500003)(478600001)(2900100001)(59450400001)(97736004)(54906003)(6512007)(53936002)(6506007)(102836004)(6436002)(5660300001)(6486002)(107886003)(26005)(2906002)(22452003)(6116002)(3846002)(36756003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1095;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: p++jIAgPME2O1/9jqfNl73QHla11ywFvchmow1Erp1KZD64+DT5YvzTQoUOOI4vr3NuKiue3BCsns9PmZ1RZPcmvbaMO/GyzMk1WlhhyRM0gm5P/p77ffxzoVurPg9QpV1qNPEPMh0fTIknJNIzHprdNiWJaxKnAaevTTRlLPMTydJRRwYEFo5S6J79i09GKbl2byP85Nsys7TKiy+nHYTCMjAh61k7JYKUJOGMTmgihWEUxmneNKpCtcvemHPHVCJT7zwcI0FguWuD+yefFCRCMVvjVKfjKswN6Gj2TNJug8VRXVxQPerxRSVxwRW5WKvS56mO09Uz6o6SRy0Hvlg== 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: d47bea79-3d2f-452b-bd74-08d58db3fb01 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:08:28.2201 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1095 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.14.1