aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/basic/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorVivian Wang <wangruikang@iscas.ac.cn>2025-11-03 10:02:49 +0800
committerJakub Kicinski <kuba@kernel.org>2025-11-03 17:23:48 -0800
commit5556f23478e6eb5d6a0321d4135e2c37a3c78a1e (patch)
treeb0dcdb6da93b96799727a5beb94b3fc6d6b72099 /scripts/basic/git:/ssh:/git@git.zx2c4.com
parentocteontx2-pf: Fix devm_kcalloc() error checking (diff)
downloadwireguard-linux-5556f23478e6eb5d6a0321d4135e2c37a3c78a1e.tar.xz
wireguard-linux-5556f23478e6eb5d6a0321d4135e2c37a3c78a1e.zip
net: spacemit: Check netif_running() in emac_set_pauseparam()
Currently, emac_set_pauseparam() will oops if userspace calls it while the interface is not up, because phydev is NULL, but it is still accessed in emac_set_fc() and emac_set_fc_autoneg(). Check for netif_running(dev) in emac_set_pauseparam() before proceeding. Fixes: bfec6d7f2001 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20251103-k1-ethernet-remove-fc-v3-1-2083770cd282@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions