mirror of https://github.com/torvalds/linux.git
of_get_child_by_name() returns a node pointer with refcount incremented.
Use the __free() attribute to manage the pgc_node reference, ensuring
automatic of_node_put() cleanup when pgc_node goes out of scope.
This eliminates the need for explicit error handling paths and avoids
reference count leaks.
Fixes:
|
||
|---|---|---|
| .. | ||
| actions | ||
| amlogic | ||
| apple | ||
| arm | ||
| bcm | ||
| imx | ||
| marvell | ||
| mediatek | ||
| qcom | ||
| renesas | ||
| rockchip | ||
| samsung | ||
| st | ||
| starfive | ||
| sunxi | ||
| tegra | ||
| thead | ||
| ti | ||
| xilinx | ||
| Kconfig | ||
| Makefile | ||
| core.c | ||
| governor.c | ||