Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5408189917 for ; Thu, 24 Oct 2024 07:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729755942; cv=none; b=F43Z7FzjPm7oIQNXQOCJ39ce1N00MAeelcRCMkOYswBcWLRIwSTuFOlBcr4tgut9rZXMrYz7eULat9ZhqZCpv73F10B1pI1AKGVU4ItE+A8ZOBkO3iNMpCqvD95SEvmwSoAqY44fPEh50A7vmBOT+g8mQqqRlEccRGpfIuFQSjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729755942; c=relaxed/simple; bh=hh3ShzjQRDawnLSpjqv2Gi7JMOXL/1xuIK4PiSoGO+8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TQiePZ5xA8vl2Lc9AiCTr/FT1GbpoYj9KZIuRIMewohEUuWo0QDUTIm7qv6IBRpKtlzX2kBZxhjCVd5YtOkq0mEWW9W8rJqKvvUudLPnl4bBdjzD9vBUbhRSI/4vMEB4eWLWBWRTGctDy0cpggJ2GLibFNZLCNfsGFxRaBUcmJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=HOPrWlWd; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="HOPrWlWd" Received: by mail.gandi.net (Postfix) with ESMTPSA id A227A1BF203; Thu, 24 Oct 2024 07:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1729755937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hh3ShzjQRDawnLSpjqv2Gi7JMOXL/1xuIK4PiSoGO+8=; b=HOPrWlWdUdEKMR6Qx7waQc+sTRtxT64dj8kwPkE58uXPlwdYc6nrdMyFpOI2kjyaW2HY5L EYc/5e+cR5tYrev4xTCan8qiLnQk1RNJp6McRehvk7jg/nzcO0Ax8YrVW9tBy82hvV45dB /qq1Qr3C8YHEry2Gjse6E2j5vsCnYx8UnZiaEG4cmpA02dC3bvrdatvQF3nmsn8qs/Nxr3 OJlLJV3KdfJTMY92V99726WvZ/z194yXGQghxutXfRW1t5ykA1gfTnzgePkc7FlC5OTM/w rifWx/4GymDbJxSeZNuZs+Ap1xplvfWZ+781KM2BdfemI6EEOn8RDDJBpqW2mQ== Date: Thu, 24 Oct 2024 09:45:35 +0200 From: Kory Maincent To: Zhang Zekun Cc: , , , , , , , , , , Subject: Re: [PATCH net 2/2] net: pse-pd: Add missing of_node_get() before of_find_node_by_name() Message-ID: <20241024094535.70118377@kmaincent-XPS-13-7390> In-Reply-To: <20241024015909.58654-3-zhangzekun11@huawei.com> References: <20241024015909.58654-1-zhangzekun11@huawei.com> <20241024015909.58654-3-zhangzekun11@huawei.com> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Thu, 24 Oct 2024 09:59:09 +0800 Zhang Zekun wrote: > of_find_node_by_name() will decrease the refount of the device_node. > So, get the device_node before passing to it. >=20 > Fixes: 20e6d190ffe1 ("net: pse-pd: Add TI TPS23881 PSE controller driver") > Signed-off-by: Zhang Zekun Acked-by: Kory Maincent Thank you! --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com