Joe Hattori 0cb2c504d7 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>
2024-12-17 13:22:05 +01:00
..
2024-12-06 13:47:55 -08:00
2024-11-26 18:05:44 -08:00
2024-11-23 10:44:31 -08:00
2024-12-06 11:52:15 -08:00
2024-11-25 17:12:54 -08:00
2024-12-06 13:16:41 -08:00
2024-11-05 05:33:46 +01:00
2024-12-05 10:06:47 -08:00
2024-11-25 10:31:39 -08:00
2024-12-05 15:02:20 -08:00
2024-11-09 09:14:12 -08:00
2024-12-05 10:14:36 -07:00
2024-11-29 11:43:29 -08:00
2024-12-04 10:28:30 -08:00
2024-12-06 11:24:00 -08:00
2024-11-15 00:32:29 +11:00
2024-11-28 09:40:53 -08:00
2024-11-29 11:43:29 -08:00
2024-11-30 14:45:29 -08:00
2024-11-21 08:28:08 -08:00
2024-12-06 11:36:48 -08:00
2024-11-12 15:48:08 +01:00
2024-12-11 13:48:25 -08:00
2024-12-06 13:47:55 -08:00
2024-12-05 10:03:43 -08:00