Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2069444imm; Thu, 9 Aug 2018 06:54:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzu29kS++5DCwbXrbAPeP3A9P9mWI0NNoGpUpHs9uK0GdZDQV/tzn0n8BdWwDnlomScIo7t X-Received: by 2002:a17:902:7287:: with SMTP id d7-v6mr2194143pll.54.1533822856330; Thu, 09 Aug 2018 06:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533822856; cv=none; d=google.com; s=arc-20160816; b=DDhD3pXAjE2UqlaBBlrjvzESHl45EJBNnKe91HQqQTUMteN6MCTqer5TVOJRV3ndyO /Udcse2D2/PjC1mV8coH4Szcb28bGiCzQ11SM0J4gBWr/uYTvkV+C15028dA8fsv767N 9osOWkwgxPQjUNCAtWniPhn6Gdxlt27Q387MQugmuuxxhUrMwpZ7oJ/khCjuCEY6SXWE cQ0gBowNGk9QFZZ86AJ54c0+tqIKFBz/lh1I4NhrP9lBLVY2Yj5oXFyWt09MnrYRXgY6 pQxn8XO0bIE0AWLg3cfWrv2pIykUmAWw9sEANNKxOiEB+KSFAdJZLMa0pT9O1FhZTM0y FOaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=3VbQH2rlidCW5Ll9elYfCKbNxguMgd+jdAi9ZI94YJk=; b=xdlOSoYDhkQyrvNjT//C0AtaQM8/H6PZoIBUulRxaeN7SIO40tCGDv5zF+34FHKczf PyU5UT8qPPHppOOUK4/wvY1PlpNWLrN4g+wtRY6NaK5+9NGruuOr+yhlzhpy2Pf5DEfj 7u0eUu1Ln6dfLu05NuSyIA247hgswF5xE+JhUu/5KHrmV4njhhBzQaemh+fwMwHbKaNE ykv99jcxXzG4P83WzOAH7yrebp7IqhudZzE3KbXY6eckV4PkXeg02mtYiuHICyhxBaa/ kZkFi8YREbJaRtEnLcEvE3FWrqPPOcjcz0YsnCU8ZXcorpM5B1/C07wA4aNE9oXzRu3O Ko0A== 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 j62-v6si8142790pfb.348.2018.08.09.06.54.01; Thu, 09 Aug 2018 06:54:16 -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 S1732280AbeHIQRx (ORCPT + 99 others); Thu, 9 Aug 2018 12:17:53 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59228 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731432AbeHIQRx (ORCPT ); Thu, 9 Aug 2018 12:17:53 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6A4DE625CFAA6; Thu, 9 Aug 2018 21:52:43 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.399.0; Thu, 9 Aug 2018 21:52:39 +0800 From: zhong jiang To: , CC: , , , Subject: [PATCH] drivers/thermal/tegra: fix a doule free devce node Date: Thu, 9 Aug 2018 21:40:56 +0800 Message-ID: <1533822056-33930-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Device node iterators will get the return node. Meawhile, It is also put the previous device node. An explicit put will cause a double put. Signed-off-by: zhong jiang --- drivers/thermal/tegra/soctherm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index ed28110..3aa55c9 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -980,7 +980,6 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev) tcd = thermal_of_cooling_device_register(np_stcc, (char *)name, ts, &throt_cooling_ops); - of_node_put(np_stcc); if (IS_ERR_OR_NULL(tcd)) { dev_err(dev, "throttle-cfg: %s: failed to register cooling device\n", -- 1.7.12.4