summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>2024-12-21 17:14:48 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:33:40 +0100
commit6dfa451b5302e75c2be472ae73b385f7c073b520 (patch)
treefaed43894996b9f5a4572c10441b126ef4c3f665 /scripts/const_structs.checkpatch
parent5abb84101c0e6bb81c298b31056daab2b0d9da3f (diff)
downloadlinux-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/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions