diff options
| author | Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> | 2024-12-21 17:14:48 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-09 13:33:40 +0100 |
| commit | 6dfa451b5302e75c2be472ae73b385f7c073b520 (patch) | |
| tree | faed43894996b9f5a4572c10441b126ef4c3f665 /scripts/kernel-doc | |
| parent | 5abb84101c0e6bb81c298b31056daab2b0d9da3f (diff) | |
| download | linux-6dfa451b5302e75c2be472ae73b385f7c073b520.tar.gz linux-6dfa451b5302e75c2be472ae73b385f7c073b520.tar.bz2 linux-6dfa451b5302e75c2be472ae73b385f7c073b520.zip | |
net: mv643xx_eth: fix an OF node reference leak
[ Upstream commit ad5c318086e2e23b577eca33559c5ebf89bc7eb9 ]
Current implementation of mv643xx_eth_shared_of_add_port() calls
of_parse_phandle(), but does not release the refcount on error. Call
of_node_put() in the error path and in mv643xx_eth_shared_of_remove().
This bug was found by an experimental verification tool that I am
developing.
Fixes: 76723bca2802 ("net: mv643xx_eth: add DT parsing support")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Link: https://patch.msgid.link/20241221081448.3313163-1-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions
