From patchwork Thu Aug 25 21:19:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 9300051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C28BF60757 for ; Thu, 25 Aug 2016 21:35:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2D6C293D2 for ; Thu, 25 Aug 2016 21:35:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7D46293E3; Thu, 25 Aug 2016 21:35:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 48254293D2 for ; Thu, 25 Aug 2016 21:35:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd2IF-0002B9-Em; Thu, 25 Aug 2016 21:34:35 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd24G-0006bq-Cc for linux-arm-kernel@bombadil.infradead.org; Thu, 25 Aug 2016 21:20:08 +0000 Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd24D-0000YA-QU for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 21:20:06 +0000 Received: by mail-it0-x231.google.com with SMTP id n128so113441111ith.1 for ; Thu, 25 Aug 2016 14:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ekEoOVPMEmt85MLj8AnzjuX7qYghKVVP2ni+xLNH9w4=; b=JQTTXJwXvse4Yp12Eo8xTkh1ltu0BEVjQyEnww/S7eCulJQoT1myqHnRv93I6Zh00T lqjf4gnXt9ehaNG6owmDV0nrsEbJmPZAgnUFVcuQi+nLSFMaFdcp0IgoQhfHyQBMQ131 T98X3GOFI+RfHwTmOWXiPI54/2IMyg7ME175o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ekEoOVPMEmt85MLj8AnzjuX7qYghKVVP2ni+xLNH9w4=; b=Q66/O3l/jGOIpKRQNL/3aypHLNzbdU6Pk9axvCx5t8kOzid2fmKyb3nvE9BmHAwh4r JyhQBjdfLo/KD67F/u9lseqBXJstBL16MZCuZr7CaGps4t4aYCKEC5K+RcL4T95VcjL4 +3EQTGa3JN+AXfZabOPefieOEjQFUr8Jf1iRi6ybWWefg2DgnxDU8fo1zTq2xEmTlbM1 3/XGuCJqqvhqHkw2kwNqt3cdKtsfIYevyg80DCL56E/iU3h6u3BLezgKML66D82f/ZmB 5hCzBXvxkEgG6TzvmarrksrSxUhBTzsNDTEGVRgX4WxACuqjMV48twJDUCLsH3ozFH6A rWGw== X-Gm-Message-State: AE9vXwMOnKTCG+K+IDPSkpsFPBGT50I1aYlLRAsS99uPDdrLfYf1WXuLmb8Nnfavei9hwuLj X-Received: by 10.107.14.4 with SMTP id 4mr12568986ioo.160.1472159983840; Thu, 25 Aug 2016 14:19:43 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o5sm14506120ith.20.2016.08.25.14.19.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 14:19:43 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 14/28] hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_phandle Date: Thu, 25 Aug 2016 15:19:04 -0600 Message-Id: <1472159958-5981-15-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> References: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160825_222006_046273_69F9E049 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Peter Chen of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: linux-arm-kernel@lists.infradead.org Cc: Mathieu Poirier Signed-off-by: Peter Chen Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/of_coresight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 18f1c8c4776b..629e031b7456 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( break; } } + of_node_put(dn); return pdata; }