Received: by 10.192.165.156 with SMTP id m28csp1101643imm; Wed, 11 Apr 2018 12:26:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/HDNkQgZ5vknCtYVAiwpMKoiNPKaExzO1OS332mf6LqjCGA48HqxZOdvhQCCGHCnSeOOXd X-Received: by 10.99.100.197 with SMTP id y188mr4305167pgb.277.1523474782907; Wed, 11 Apr 2018 12:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523474782; cv=none; d=google.com; s=arc-20160816; b=06PyeuCgCEnl4iIjQ0Cs5a8CsdpsR+oe5dsSv9wG3NOtTyhQPbHfAIakPEwlg2ssKC HhW2noLqhWDNpRuHThNUEHSMtb9ULvgKkCODh4wt4ggBTSw16UQerK1WvLyZtwYps3LX 3GZRT2w1X3C83BaSToBI0hR6u7NfmPIAaC+RZdFJwcDJfNRAI5R9fp74FbDo6G7UWqdQ ds/xl2JZLkfALu0G+KGOSdvrTKtOUFlxsb6i93c8y5QYXVBg5aKo3e9PD5Tl/yB3Nny0 7kgjhLfl6abWd09MN1d8LuGvjwl8IaFa8wjKzPgIQnB3pRAfTSb0c1kFED77pAOJ2nWR 6IzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YuupGo5JzcZMPgtwTjWAx1zHkTHZqGSnnkyBqVLtUqA=; b=VYbcE4cswNChEQxUuKonqBSySdOZ6XHpYs+7yaK3HHNWjF4i5kWntxSsklZITHPCoo WRayWvXRkNcpcBGrDRrfHL1GS6xMhpOG4f69meq2fW1RRqYNad/gDOGUWACxVB+WIXzx vyZ2j+2cMmFEUDCmh/szqyIPsF5Rl95m3EJu0Zxj3xfNaYRokykwr3RRxvijNfVPhSgq A8NL36tsdoq28zWzLNLM4X/kZ+B6wVoS/DaXdYoGFI+MtwaDDU1kbSubrpkzqqStiF52 qCWjMXNkQVx47JKrUDaDbwW+YM7div3zzhg2eZWecnTgo67in/L8tdimClmyHFWHEyOT 8E8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21-v6si1692773pll.460.2018.04.11.12.25.46; Wed, 11 Apr 2018 12:26:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934833AbeDKTEX (ORCPT + 99 others); Wed, 11 Apr 2018 15:04:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39798 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934800AbeDKTET (ORCPT ); Wed, 11 Apr 2018 15:04:19 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 503055B1; Wed, 11 Apr 2018 19:04:18 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Jaillet , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.9 248/310] cpuidle: dt: Add missing of_node_put() Date: Wed, 11 Apr 2018 20:36:27 +0200 Message-Id: <20180411183633.120778550@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ 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 states) Signed-off-by: Christophe Jaillet Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/cpuidle/dt_idle_states.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- 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_d if (!state_node) break; - if (!of_device_is_available(state_node)) + if (!of_device_is_available(state_node)) { + of_node_put(state_node); continue; + } if (!idle_state_valid(state_node, i, cpumask)) { pr_warn("%s idle state not valid, bailing out\n",