From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 386AFC433EF for ; Wed, 22 Jun 2022 09:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nD5ah7uN59wNIRfpnAukw/KqZDnZWXVaEybP/acGOUU=; b=B6O7+eiqE/YO1v okcxYGertwd4ZJ/O3VUgyYMUoy8UDuB+b1dcBX0hPj6Z6uNrtpaLFK/b0Ex86xdUjT/MfAT6EPpWY cIyzp97k3+lGEO9JFllbEWZfLXEXYyPFDJMvpUxjbTva9if0ED3xEAIkeQwi9A5MCPbGEmMKzL+cb t5a7l1CXzkAxThEWNVEik4+U2ATOm1L1RMOrxsXdZKE5aXMzLS6XujcWvslJ4SWV4qqpahYZlcFu0 5q+5SSqBOYs4bSue/+RXwmh0cXGSSFjcw52pV2bzxm9QNS74susirGH5DdXQG10feh2/x5msnwWpw 0G7m5eO20pT9YMmUGVNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3wDm-009Pkd-9I; Wed, 22 Jun 2022 09:00:22 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3wDi-009PiZ-4t; Wed, 22 Jun 2022 09:00:19 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D0DDFB81CBF; Wed, 22 Jun 2022 09:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2CB0C34114; Wed, 22 Jun 2022 09:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655888415; bh=xXD+fcf0G7W/M6s0Dx6PR+PbKve+KAtrMjjS5n3xU9U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pW/mZMTwLqPUQrXoAGc4p4NddsInPyIghUxx3v4CuNTOwc9t2hxziu/XDMCVzSBs+ DkzwdGSlL+/gdrXS5R2LzZ4/yBfCEvaBzlxh9O6dsW5wGSvQAOt+S1BqDH2vIfkBa3 SldtRLuV8Qwmh5GJq+na01kQHh/5BRbfjf4jR/PBja1Qnb/FscOPUV6HOjeC5QEiHi a1lfSHK5YGm09ZWSV6bn7skNm4vCsnKqdSyydH5rmJ3Fdacy7ri3ns8cFwPEHtE7Cx vzTtpdKfWxBIINDKPVoq5+I0mYR7sd6yAhn4kDERd+AAibNlzdFBbVYUmxBXfCzEM7 zUHBb3TfeWIjg== Message-ID: <1a450b67-1e37-1eac-5906-910cb4deefdf@kernel.org> Date: Wed, 22 Jun 2022 11:00:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2] arm: mach-rockchip: (pm) Add missing of_node_put() Content-Language: en-US To: Liang He , linux@armlinux.org.uk, heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220616021713.3973472-1-windhl@126.com> From: Krzysztof Kozlowski In-Reply-To: <20220616021713.3973472-1-windhl@126.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_020018_383796_EEC70774 X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/06/2022 04:17, Liang He wrote: > In rockchip_suspend_init(), of_find_matching_node_and_match() will > return a node pointer with refcount incremented. We should use > of_node_put() in fail path or when it is not used anymore. > > Signed-off-by: Liang He > --- > changelog: > > v2: (1) use real name for Sob (2) use goto-label patch style > v1: add of_node_put() for each return > Before applying the patch please check it carefully. Previous evidence [1][2] suggests that not it was not even compiled. [1] https://lore.kernel.org/all/202206221602.odN70SHs-lkp@intel.com/ [2] https://lore.kernel.org/all/16f9a971.44e5.1817068ee3c.Coremail.windhl@126.com/ Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel