umber-kernel/drivers/net
Thomas Fourier 1b1d3c5d58 net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle
[ Upstream commit ffe68c3766997d82e9ccaf1cdbd47eba269c4aa2 ]

dma_free_coherent() in error path takes priv->rx_buf.alloc_len as
the dma handle. This would lead to improper unmapping of the buffer.

Change the dma handle to priv->rx_buf.alloc_phys.

Fixes: 6af55ff52b ("Driver for Beckhoff CX5020 EtherCAT master module.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20260213164340.77272-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:21:33 -05:00
..
arcnet
bonding
caif
can
dsa
ethernet net: ethernet: ec_bhf: Fix dma_free_coherent() dma handle 2026-03-04 07:21:33 -05:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
ovpn ovpn: tcp - fix packet extraction from stream 2026-03-04 07:20:46 -05:00
pcs
phy net: phy: qcom: qca807x: normalize return value of gpio_get 2026-03-04 07:20:45 -05:00
plip
ppp
pse-pd
slip
team team: avoid NETDEV_CHANGEMTU event when unregistering slave 2026-03-04 07:20:51 -05:00
thunderbolt
usb net: usb: pegasus: enable basic endpoint checking 2026-03-04 07:20:49 -05:00
vmxnet3
vxlan
wan net: wan/fsl_ucc_hdlc: Fix dma_free_coherent() in uhdlc_memclean() 2026-03-04 07:21:27 -05:00
wireguard
wireless net: intel: fix PCI device ID conflict between i40e and ipw2200 2026-03-04 07:21:29 -05:00
wwan net: wwan: mhi: Add network support for Foxconn T99W760 2026-03-04 07:20:12 -05:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c netconsole: avoid OOB reads, msg is not nul-terminated 2026-03-04 07:20:49 -05:00
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c
tun_vnet.h
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c