3
0
Fork 0
forked from mirrors/linux
kernel/drivers/net/ethernet/broadcom
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: 1676aba5ef ("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
..
asp2 net: broadcom: use ethtool string helpers 2024-11-06 17:51:02 -08:00
bnx2x net: bnx2x: use ethtool string helpers 2024-11-06 17:50:37 -08:00
bnxt bnxt_en: Fix aggregation ID mask to prevent oops on 5760X chips 2024-12-10 18:25:38 -08:00
genet net: broadcom: use ethtool string helpers 2024-11-06 17:51:02 -08:00
b44.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
b44.h
bcm63xx_enet.c net: broadcom: use ethtool string helpers 2024-11-06 17:51:02 -08:00
bcm63xx_enet.h
bcm4908_enet.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
bcm4908_enet.h
bcmsysport.c net: broadcom: use ethtool string helpers 2024-11-06 17:51:02 -08:00
bcmsysport.h net: systemport: Move IO macros to header file 2024-10-28 15:54:37 -07:00
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c net: ethernet: bgmac-platform: fix an OF node reference leak 2024-12-17 13:22:05 +01:00
bgmac.c net: broadcom: use ethtool string helpers 2024-11-06 17:51:02 -08:00
bgmac.h
bnx2.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
bnx2.h
bnx2_fw.h
cnic.c net: cnic: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
cnic.h net: cnic: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
cnic_defs.h
cnic_if.h
Kconfig net: broadcom: remove select MII from brcmstb Ethernet drivers 2024-10-11 16:00:17 -07:00
Makefile
sb1250-mac.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
tg3.c tg3: Set coherent DMA mask bits to 31 for BCM57766 chipsets 2024-11-24 16:45:48 -08:00
tg3.h tg3: Increase buffer size for IRQ label 2024-10-17 21:24:24 -05:00
unimac.h