Re: [PATCH] of: unittest: fix node reference leak in of_notify()
From: Wentao Liang
Date: Sun Nov 08 2026 - 06:59:48 EST
Hi,
Please disregard this patch, and the September one as well:
https://lore.kernel.org/all/20260917124457.2151809-1-vulab@xxxxxxxxxxx/
My analysis was wrong. of_find_node_by_name() calls
of_node_put() on its @from argument, so the four valid actions
already release the reference taken by of_node_get(nd->overlay),
and only the default branch needed the explicit put. Moving it
after the switch would have dropped that reference twice. The
original code is correct and there is nothing to fix here.
Sorry for the noise.
Wentao