kernel_samsung_a53x/drivers/net/ethernet
Joe Hattori d3eff01514 net: ethernet: bgmac-platform: fix an OF node reference leak
[ Upstream commit 0cb2c504d79e7caa3abade3f466750c82ad26f01 ]

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: 1676aba5ef7e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-15 16:29:41 +01:00
..
3com
8390
adaptec
aeroflex net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit() 2024-11-23 23:21:59 +01:00
agere
alacritech
allwinner
alteon
altera
amazon net: ena: Fix incorrect descriptor free behavior 2024-11-19 11:32:20 +01:00
amd net: amd: mvme147: Fix probe banner message 2024-11-23 23:22:04 +01:00
apm
apple
aquantia Revert "net: atlantic: Avoid warning about potential string truncation" 2024-11-24 00:23:08 +01:00
arc net: arc: fix the device for dma_map_single/dma_unmap_single 2024-11-30 02:33:22 +01:00
atheros ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 2024-11-18 12:11:59 +01:00
aurora
broadcom net: ethernet: bgmac-platform: fix an OF node reference leak 2025-01-15 16:29:41 +01:00
brocade bna: adjust 'name' buf size of bna_tcb and bna_ccb structures 2024-11-23 23:20:08 +01:00
cadence Revert "net: macb: Avoid 20s boot delay by skipping MDIO bus registration for fixed-link PHY" 2024-11-24 00:22:53 +01:00
calxeda
cavium liquidio: Adjust a NULL pointer handling path in lio_vf_rep_copy_packet 2024-11-19 14:19:03 +01:00
chelsio cxgb4: use port number to set mac addr 2025-01-02 17:00:50 +01:00
cirrus
cisco enic: Validate length of nl attributes in enic_set_vf_port 2024-11-19 12:27:10 +01:00
cortina Revert "net: ethernet: cortina: Drop TSO support" 2024-11-24 00:23:00 +01:00
davicom
dec
dlink
emulex be2net: fix potential memory leak in be_xmit() 2024-11-23 23:22:01 +01:00
ezchip
faraday Revert "net: ftgmac100: Enable TX interrupt to avoid TX timeout" 2024-11-24 00:23:34 +01:00
freescale net: ethernet: fs_enet: Use %pa to format resource_size_t 2024-12-17 13:24:30 +01:00
fujitsu
google gve: Use size_add() in call to struct_size() 2024-11-18 11:42:47 +01:00
hisilicon net: hns3: fix kernel crash when uninstalling driver 2024-11-30 02:33:22 +01:00
huawei net: hinic: Fix cleanup in create_rxqs/txqs() 2025-01-15 16:29:41 +01:00
i825xx Revert "net/sun3_82586: Avoid reading past buffer in debug output" 2024-11-24 00:23:52 +01:00
ibm Revert "net: ibm: emac: mal: fix wrong goto" 2024-11-24 00:22:56 +01:00
intel igb: Fix potential invalid memory access in igb_init_module() 2024-12-17 13:24:26 +01:00
marvell octeontx2-pf: Fix otx2_get_fecparam() 2024-12-17 13:24:35 +01:00
mediatek net: ethernet: mtk_eth_soc: remove duplicate if statements 2024-11-18 12:12:45 +01:00
mellanox net/mlx5e: kTLS, Fix incorrect page refcounting 2024-12-17 13:20:50 +01:00
micrel net: ks8851: Fix potential TX stall after interface reopen 2024-11-19 14:19:44 +01:00
microchip lan743x: fix for potential NULL pointer dereference with bare card 2024-11-18 22:25:36 +01:00
moxa
mscc
myricom
natsemi
neterion vxge: remove unnecessary cast in kfree() 2024-11-19 09:22:37 +01:00
netronome Revert "nfp: Use IRQF_NO_AUTOEN flag in request_irq()" 2024-11-24 00:23:07 +01:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: use ee->offset when returning sprom data 2025-01-15 16:29:41 +01:00
qlogic net/qed: allow old cards not supporting "num_images" to work 2024-12-17 13:24:26 +01:00
qualcomm qca_spi: Make driver probing reliable 2025-01-02 17:00:50 +01:00
rdc
realtek r8169: don't apply UDP padding quirk on RTL8126A 2024-12-17 13:24:30 +01:00
renesas net: ravb: Always process TX descriptor ring 2024-11-19 09:22:50 +01:00
rocker rocker: fix link status detection in rocker_carrier_init() 2024-12-17 13:24:31 +01:00
samsung
seeq Revert "net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition" 2024-11-24 00:23:18 +01:00
sfc sfc: fix a double-free bug in efx_probe_filters 2024-11-18 12:12:06 +01:00
sgi
silan
sis
smsc net: smc91x: Fix m68k kernel compilation for ColdFire CPU 2024-11-19 12:26:51 +01:00
socionext
stmicro net: stmmac: dwmac-socfpga: Set RX watchdog interrupt as broken 2024-12-17 13:24:15 +01:00
sun eth: sungem: remove .ndo_poll_controller to avoid deadlocks 2024-11-19 12:26:56 +01:00
synopsys
tehuti
ti net: ethernet: ti: am65-cpts: Fix PTPv1 message type on TX packets 2024-11-19 11:32:38 +01:00
toshiba net: spider_net: Use size_add() in call to struct_size() 2024-11-18 11:42:47 +01:00
tundra
via
wiznet
xilinx Revert "net: axienet: Fix register defines comment description" 2024-11-24 00:23:54 +01:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c Revert "net: ethernet: use ip_hdrlen() instead of bit shift" 2024-11-24 00:23:36 +01:00
jme.h
Kconfig
korina.c
lantiq_etop.c Revert "net: ethernet: lantiq_etop: fix memory disclosure" 2024-11-24 00:23:12 +01:00
lantiq_xrx200.c
Makefile