mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
e45ac7831f
The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.
This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error paths.
Fix this by calling of_node_put() in error handling too.
Fixes:
|
||
---|---|---|
.. | ||
common | ||
mt2701 | ||
mt6797 | ||
mt8173 | ||
mt8183 | ||
mt8192 | ||
mt8195 | ||
Kconfig | ||
Makefile |