linux-kernelorg-stable/drivers/net
Anas Iqbal b487318496 net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths
Smatch reports:
drivers/net/dsa/bcm_sf2.c:997 bcm_sf2_sw_resume() warn:
'priv->clk' from clk_prepare_enable() not released on lines: 983,990.

The clock enabled by clk_prepare_enable() in bcm_sf2_sw_resume()
is not released if bcm_sf2_sw_rst() or bcm_sf2_cfp_resume() fails.

Add the missing clk_disable_unprepare() calls in the error paths
to properly release the clock resource.

Fixes: e9ec5c3bd2 ("net: dsa: bcm_sf2: request and handle clocks")
Reviewed-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com>
Link: https://patch.msgid.link/20260318084212.1287-1-mohd.abd.6602@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-19 09:26:40 -07:00
..
arcnet
bonding net: bonding: fix NULL deref in bond_debug_rlb_hash_show 2026-03-18 18:05:40 -07:00
caif serial: caif: hold tty->link reference in ldisc_open and ser_release 2026-03-09 18:47:55 -07:00
can can: hi311x: hi3110_open(): add check for hi3110_power_enable() return value 2026-03-10 11:12:52 +01:00
dsa net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths 2026-03-19 09:26:40 -07:00
ethernet net: mvpp2: guard flow control update with global_tx_fc in buffer switching 2026-03-19 10:31:19 +01:00
fddi
fjes
hamradio
hyperv
ieee802154
ipa
ipvlan
mctp mctp: i2c: fix skb memory leak in receive path 2026-03-10 11:10:55 +01:00
mdio
netdevsim netdevsim: drop PSP ext ref on forward failure 2026-03-18 17:13:34 -07:00
ovpn
pcs
phy net: sfp: improve Huawei MA5671a fixup 2026-03-09 18:46:46 -07:00
plip
ppp
pse-pd
slip
team
thunderbolt
usb net: usb: aqc111: Do not perform PM inside suspend callback 2026-03-17 13:36:12 +01:00
vmxnet3
vxlan net: vxlan: fix nd_tbl NULL dereference when IPv6 is disabled 2026-03-05 07:52:56 -08:00
wan
wireguard
wireless wifi: mac80211: always free skb on ieee80211_tx_prepare_skb() failure 2026-03-18 09:09:58 +01:00
wwan
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: fix sysdata_release_enabled_show checking wrong flag 2026-03-03 17:23:50 -08: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 xen: branch for v7.0-rc3 2026-03-07 07:44:32 -08:00