android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Toke Høiland-Jørgensen 8f88812306 wifi: ath9k: Remove error checks when creating debugfs entries
[ Upstream commit f6ffe7f0184792c2f99aca6ae5b916683973d7d3 ]

We should not be checking the return values from debugfs creation at all: the
debugfs functions are designed to handle errors of previously called functions
and just transparently abort the creation of debugfs entries when debugfs is
disabled. If we check the return value and abort driver initialisation, we break
the driver if debugfs is disabled (such as when booting with debugfs=off).

Earlier versions of ath9k accidentally did the right thing by checking the
return value, but only for NULL, not for IS_ERR(). This was "fixed" by the two
commits referenced below, breaking ath9k with debugfs=off starting from the 6.6
kernel (as reported in the Bugzilla linked below).

Restore functionality by just getting rid of the return value check entirely.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=219122
Fixes: 1e4134610d93 ("wifi: ath9k: use IS_ERR() with debugfs_create_dir()")
Fixes: 6edb4ba6fb5b ("wifi: ath9k: fix parameter check in ath9k_init_debug()")
Reported-by: Daniel Tobias <[email protected]>
Tested-by: Daniel Tobias <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2024-11-08 16:20:26 +01:00
..
appletalk
arcnet
bonding net: bonding: correctly annotate RCU in bond_should_notify_peers() 2024-08-19 05:33:41 +02:00
caif
can can: kvaser_usb: fix return value for hif_usb_send_regout 2024-07-27 10:38:31 +02:00
dsa net: dsa: vsc73xx: fix possible subblocks range of CAPT block 2024-09-12 11:03:53 +02:00
ethernet net: ftgmac100: Ensure tx descriptor updates are visible 2024-11-08 16:20:25 +01:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-03-15 10:48:18 -04:00
ieee802154
ipvlan ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound 2024-06-16 13:28:48 +02:00
netdevsim
phy net: phy: vitesse: repair vsc73xx autonegotiation 2024-11-08 16:20:24 +01:00
plip
ppp ppp: reject claimed-as-LCP but actually malformed packets 2024-07-18 11:40:53 +02:00
slip
team
usb usbnet: ipheth: fix carrier detection in modes 1 and 4 2024-11-08 16:20:24 +01:00
vmxnet3
wan
wimax
wireless wifi: ath9k: Remove error checks when creating debugfs entries 2024-11-08 16:20:26 +01:00
xen-netback
dummy.c
eql.c
geneve.c geneve: fix header validation in geneve[6]_xmit_skb 2024-05-02 16:18:28 +02:00
gtp.c gtp: fix a potential NULL pointer dereference 2024-09-04 13:15:03 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c net: netconsole: Disable target before netpoll cleanup 2024-08-19 05:33:35 +02:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c tap: add missing verification for short frame 2024-07-27 10:38:33 +02:00
thunderbolt.c
tun.c tun: add missing verification for short frame 2024-07-27 10:38:33 +02:00
veth.c
virtio_net.c virtio_net: Fix napi_skb_cache_put warning 2024-09-12 11:03:50 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: Fix regression when dropping packets due to invalid src addresses 2024-07-05 09:08:11 +02:00
xen-netfront.c