Received: by 10.213.65.68 with SMTP id h4csp2118441imn; Sun, 8 Apr 2018 20:09:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx49IrQehkcrR0d0Ov/bDAiQ7mZnv3EIURY1YjlnwNyDs/LaRx6yyS5k63BT0NQQZCTmOTif4 X-Received: by 10.99.64.3 with SMTP id n3mr23623737pga.13.1523243309992; Sun, 08 Apr 2018 20:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243309; cv=none; d=google.com; s=arc-20160816; b=F39H78FY0RHMXQrbG6Tm+WYv0tyaQrcGbN4CcjGB+EF1bRGWtvSCZUqKBhX7IADerU xgScctcqEKXyBMwTKB82/iOjbB/6OZPMTpVSEUlu3nIYb8clteh5KtsHd88Y4q/EOZIi F9H4/+MhbSzy1748Uar556RJDDdGc9r6HGoriWvX4cZrr2hD659iSjZzJI/LccLUpHFi 1JEKTsIR9d20VL07tCipQH0iYAFXGewrrBvaFrRdLY2K8q804vZlsyVhdS3UEiPDX2JQ EdUSHW97NVVSv+SJfh4x5bF2mp8azgKIXWH2i1Ke9v7cuzGfyth9oYw207Q48uDjHeIE 1fWw== 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=AdJvu5kLgOaSflUDj+gqVDvDeLDdDDSdVJP573L9ZGeMfpsv+7x+OmBz2QhmJgWytZ PDTQBJYziI6UAwpeMg9hGMjqeGUtKAt+VaC4hJdJzn7q1uO7KrypT9c+WhtpEKWtGpyK fui5LT9ZFxceNajLTBQ0ryqGSXwLwnc3NCTUnihpJ97R79YJ0+FkvN7PG0A0AS7xxFvx R6faffUpAkiwLEGASj3+U+4sumoNXJ1KqVKG4H2RBIWkdAhHXn6nLzhUdK6Dokk3uW0j N8CtVQf/QRDTN9nmFcMOwdB6ZbFIDDxKOtuinDcz3JeGgZ2GllieCdKx+iS8JlB81iy4 ZzxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=nAHLqtsN; 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 f1-v6si16204974pld.168.2018.04.08.20.07.53; Sun, 08 Apr 2018 20:08:29 -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=nAHLqtsN; 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 S1756898AbeDIBhC (ORCPT + 99 others); Sun, 8 Apr 2018 21:37:02 -0400 Received: from mail-sn1nam02on0094.outbound.protection.outlook.com ([104.47.36.94]:35040 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932569AbeDIAfE (ORCPT ); Sun, 8 Apr 2018 20:35:04 -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=nAHLqtsN9GeJUEKgcsuUYF7S54c8PXq8fEtG6bcbR5VYCArG9Num20Y8GvBr6zJ4DmM1w0CbiotZPXV21gMdrBEDEyy1zCFxZ83EQy7UK0mHvoZoN0tr5IWx/076q51kd96NS/mlukGQe5MU/Fo0ragyTouXrS+OrNaY82KWZXA= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1013.namprd21.prod.outlook.com (52.132.133.35) 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:35:00 +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:34:59 +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.4 017/162] cpuidle: dt: Add missing 'of_node_put()' Thread-Topic: [PATCH AUTOSEL for 4.4 017/162] cpuidle: dt: Add missing 'of_node_put()' Thread-Index: AQHTz5maZS7fJ1KZMkaQBBHNb9UhBA== Date: Mon, 9 Apr 2018 00:27:55 +0000 Message-ID: <20180409002738.163941-17-alexander.levin@microsoft.com> References: <20180409002738.163941-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002738.163941-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;DM5PR2101MB1013;7:RJkRhK8lu5vPkNjO+7WauBTpyUOPyjx1+bsPQ9BXpNVXpGeoCRWXQFaWYlucT/pSjqqSU5CmQpKwWF/WvMY2OSgVOJO7iuWQw0ybU4OpWFux70QGUzI0BPVKPnfFIo5u2KY9zc3ClUkwCOGtq976UMEcBPXGGv7Kx/DGkbFd14Q/ovZe89GIryaIZUEKsDYwxqQd0zIBJ0PSuGzwkUNJhTDBw0zPtiNTc42h0HUNJmIXwRL/Z/quKWYjupE7t6a7;20:tPlvMwDkEmsuHPParYI9jXQPQ/nwwAYydpsjcN/1lV9xdl4veVchCjOIM1EkyVDZddWMBRP405erUbRM8b0WpKD0i27ln+IgyammyzMmC5uEMAsno33mvkHqO91T4uM5dJBluLjop+7dliuJCwEwIcPdtlm+JR7ex5mqMLBUQr4= X-MS-Office365-Filtering-Correlation-Id: 4a21d2fe-2fed-4e1e-7712-08d59db1ba1a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1013; x-ms-traffictypediagnostic: DM5PR2101MB1013: 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)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1013;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1013; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(39860400002)(396003)(346002)(366004)(376002)(189003)(199004)(478600001)(10290500003)(6436002)(5250100002)(2501003)(14454004)(305945005)(4326008)(66066001)(99286004)(10090500001)(6506007)(36756003)(102836004)(54906003)(486006)(107886003)(76176011)(59450400001)(2900100001)(22452003)(316002)(110136005)(86362001)(3660700001)(2906002)(81166006)(186003)(86612001)(81156014)(2616005)(8936002)(3280700002)(11346002)(53936002)(7736002)(476003)(446003)(72206003)(68736007)(6116002)(5660300001)(106356001)(6666003)(6486002)(8676002)(1076002)(105586002)(26005)(6512007)(3846002)(97736004)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1013;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: yOF0Al5aeZNsxT3EavW/QU2TSw8op9aDNa5Dla/L5JdTgR8MuH5gbe+w2UquQP/XXHYU8vIAOaKsGunM6lOVuEcGC4XBfDO/AWc2y5+rj/ApucAMRGly5Z2M+BINN8er1KnEQ9YX8EDPaid1YKWd4oge6zdA+WphIA30N+DemBmGyzUO5To93Uw4oMDBUVPEQ2oZFrdkcHmb1V609gbPt6OLIaVcN3Atm24uzhEAKEnzFFXVLZUnIzf+V021H3+M71ogmS7xdwSTre4k0RuscA0mfQv2w4Ow3YTTfSTSGP1hWRMgvCUqASs8tAbpREZ53wn678rd5Iukyr+SeCGB7eiAGy6vRRLpmDKaKPrtGTodAZ9kpTMr29Edyowtqgs4m1x5D1cjjugC4Zem6sOq1+zk03i5aAGuWPA0ZnvCIfk= 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: 4a21d2fe-2fed-4e1e-7712-08d59db1ba1a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:27:55.2079 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1013 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