Subject: Re: [PATCH net 0/2] Get the device_node before calling of_find_node_by_name()

From: Jakub Kicinski <[email-masked]>
Date: Wed, 30 Oct 2024 18:17:09 -0700

On Thu, 24 Oct 2024 09:59:07 +0800 Zhang Zekun wrote:
> of_find_node_by_name() will decrease the refount of the device node.
> Get the device_node before call to it.

Doing some quick grepping I think Andrew is completely right.
Most callers either get this wrong or call get() immediately prior.
Maybe add a new helper with more suitable semantics?

The goal is not to fix the bugs but to prevent them in the first place.
-- 
pw-bot: cr