diff options
author | Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> | 2024-12-14 04:49:12 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-12-17 15:22:05 +0300 |
commit | 0cb2c504d79e7caa3abade3f466750c82ad26f01 (patch) | |
tree | a4fda67b95ecd4567375fcba6e0f1cc7175c03d0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 90d130aadce1592f6f2dc0cfecfc9502bbd6f5c0 (diff) | |
download | linux-0cb2c504d79e7caa3abade3f466750c82ad26f01.tar.xz |
net: ethernet: bgmac-platform: fix an OF node reference leak
The OF node obtained by of_parse_phandle() is not freed. Call
of_node_put() to balance the refcount.
This bug was found by an experimental static analysis tool that I am
developing.
Fixes: 1676aba5ef7e ("net: ethernet: bgmac: device tree phy enablement")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241214014912.2810315-1-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions