Thread (2 messages) flat view 2 messages, 2 authors, 2021-10-22

Re: [PATCH] net: dsa: sja1105: Add of_node_put() before return

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-10-22 23:38:52
Also in: lkml

On Thu, 21 Oct 2021 05:46:06 -0400 Wan Jiabing wrote:
Fix following coccicheck warning:
./drivers/net/dsa/sja1105/sja1105_main.c:1193:1-33: WARNING: Function
for_each_available_child_of_node should have of_node_put() before return.

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: Wan Jiabing <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help