diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2025-12-11 04:02:52 +0000 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2025-12-29 11:41:09 +0100 |
| commit | 73cb5f6eafb0ac7aea8cdeb8ff12981aa741d8fb (patch) | |
| tree | 78facf5b7cd1147fdd3975fc95a77fd45ac663ee /include/linux/cdx | |
| parent | 305f254727bd379bbed0385afa0162f5bde1f51c (diff) | |
pmdomain: imx: Fix reference count leak in imx_gpc_probe()
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: 721cabf6c660 ("soc: imx: move PGC handling to a new GPC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/cdx')
0 files changed, 0 insertions, 0 deletions
