aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/ynl.py
diff options
context:
space:
mode:
authorJoe Hattori <[email protected]>2024-12-18 03:51:06 +0000
committerPaolo Abeni <[email protected]>2024-12-19 10:45:42 +0000
commit572af9f284669d31d9175122bbef9bc62cea8ded (patch)
tree77e36860b79070c5fc1c450b78f7c48a4c272d08 /tools/testing/selftests/net/lib/py/ynl.py
parentMerge tag 'nf-24-12-19' of git://git.kernel.org/pub/scm/linux/kernel/git/netf... (diff)
downloadkernel-572af9f284669d31d9175122bbef9bc62cea8ded.tar.gz
kernel-572af9f284669d31d9175122bbef9bc62cea8ded.zip
net: mdiobus: fix an OF node reference leak
fwnode_find_mii_timestamper() calls of_parse_phandle_with_fixed_args() but does not decrement the refcount of the obtained OF node. Add an of_node_put() call before returning from the function. This bug was detected by an experimental static analysis tool that I am developing. Fixes: bc1bee3b87ee ("net: mdiobus: Introduce fwnode_mdiobus_register_phy()") Signed-off-by: Joe Hattori <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions