Skip to content
Commit ad5c3180 authored by Joe Hattori's avatar Joe Hattori Committed by Jakub Kicinski
Browse files

net: mv643xx_eth: fix an OF node reference leak



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: 76723bca ("net: mv643xx_eth: add DT parsing support")
Signed-off-by: default avatarJoe 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: default avatarJakub Kicinski <kuba@kernel.org>
parent fb3a9a11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment