Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3429793imm; Mon, 13 Aug 2018 11:31:47 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzu5ZhgbWM3XN4mxjZVjQEyY/H7AHZpxK+A+kq2rs8a+7Gsgz6hAozdgSXLvw2rn6eqq0k+ X-Received: by 2002:a62:64d0:: with SMTP id y199-v6mr20290475pfb.255.1534185107210; Mon, 13 Aug 2018 11:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534185107; cv=none; d=google.com; s=arc-20160816; b=ZBIU+UmdT/+7nhC7QlOV6yEPy6J+XV8ANMhJP/dZ53BrG4Y2JjkKSQ927LweN9FXWh 6MGr57Me2+i/BFTQTMGdbyE6nCmD9soWio5ebkTzHc3ig3UIc7yt9P2/tK/09Rrij18c /jLIVMzbgg6vZT2uUVT9uP4EzRmVfdAoQpurtvYchHitkpIuNycsbteLxttSAWk9XMJn x6BtvhxH1mBUesYLAtaN94/ZjIAvoxBfNjqHRXbzCVu7clWScEfbQuNFOGnf3Vl6uE24 YRzzuvEHsdPYmqrpAX8E53dP+4A0/qpt5rk0br+GgEU/i1gMt8perbQHvbmO3u+fB2I3 t8vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=l6nAyYIBwxO0rnPW7iJla6ZSnKfcGhI3LCSjvHso548=; b=A5nm5ltIVfhyyv9j3fn0mWaLdDMf4wLIyhQpAbbT0NvCUV510cNMke1h7o8uDuS+AX E4uyibUPSon0xqifJ0EhiSZZQR0Ji0fRct+f6DPQrPQBpJaWk/FwMd5wDNwkaI0RUG5j T1EL+JT6jL7CG2GC7wYZDjWe+eQ6xREPMHTg22d/euV2gDV4WDnNuad8xaYJcwfKmd7V m6PQuJEhy06LV+pGpgy6ShW1bxG9HEuEzTj6DmgUckng6c9IKFneLlx1ZIrMT3/aPXA1 6GLF9fFEI9GxpvBvOIZSIWhb5qeaNxskKPECdOYSNu+VWXCNkncEneVyyuVIEeZdd7RV /XJA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n137-v6si19992954pfd.177.2018.08.13.11.31.30; Mon, 13 Aug 2018 11:31:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730131AbeHMVNz (ORCPT + 99 others); Mon, 13 Aug 2018 17:13:55 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:8316 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbeHMVNz (ORCPT ); Mon, 13 Aug 2018 17:13:55 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Mon, 13 Aug 2018 11:30:15 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 13 Aug 2018 11:30:33 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 13 Aug 2018 11:30:33 -0700 Received: from [10.2.160.156] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 13 Aug 2018 18:30:31 +0000 Subject: Re: [PATCH] drivers/thermal/tegra: fix a doule free devce node To: zhong jiang , , CC: , , References: <1533822056-33930-1-git-send-email-zhongjiang@huawei.com> From: Jon Hunter Message-ID: <312fcf2a-ab47-9aa4-3b1f-bca5f6a4d58c@nvidia.com> Date: Mon, 13 Aug 2018 19:30:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1533822056-33930-1-git-send-email-zhongjiang@huawei.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/18 14:40, zhong jiang wrote: > 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", > Thanks! Acked-by: Jon Hunter Cheers Jon -- nvpublic