mirror-linux/drivers/net
Ping-Ke Shih 5d44f06723 rtw89: Fix variable dereferenced before check 'sta'
The pointer rtwsta is dereferencing pointer sta before sta is being null
checked. Fix this by assigning sta->drv_priv to rtwsta only if sta is not
NULL, otherwise just NULL.

Fixes: e3ec7017f6 ("rtw89: add Realtek 802.11ax driver")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211022061242.8383-1-pkshih@realtek.com
2021-10-27 10:37:59 +03:00
..
appletalk
arcnet
bonding net: bonding: constify and use dev_addr_set() 2021-10-24 13:59:44 +01:00
caif
can can: xilinx_can: xcan_remove(): remove redundant netif_napi_del() 2021-10-24 16:26:05 +02:00
dsa net: dsa: lantiq_gswip: serialize access to the PCE registers 2021-10-25 12:59:42 +01:00
ethernet net/mlx5: remove the recent devlink params 2021-10-26 10:18:32 -07:00
fddi fddi: defza: add missing pointer type cast 2021-10-25 10:28:47 -07:00
fjes net: fjes: constify and use eth_hw_addr_set() 2021-10-22 10:16:07 -07:00
hamradio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-22 11:41:16 +01:00
hippi net: hippi: use dev_addr_set() 2021-10-22 10:16:09 -07:00
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs net: convert users of bitmap_foo() to linkmode_foo() 2021-10-24 13:58:52 +01:00
phy net: phy: fixed warning: Function parameter not described 2021-10-26 14:09:50 -07:00
plip net: plip: use eth_hw_addr_set() 2021-10-22 10:16:14 -07:00
ppp
slip
team
usb usbb: catc: use correct API for MAC addresses 2021-10-25 15:34:02 +01:00
vmxnet3 net: drivers: get ready for const netdev->dev_addr 2021-10-24 13:59:45 +01:00
wan net: hldc_fr: use dev_addr_set() 2021-10-22 10:16:18 -07:00
wireguard
wireless rtw89: Fix variable dereferenced before check 'sta' 2021-10-27 10:37:59 +03:00
wwan
xen-netback net: xen: use eth_hw_addr_set() 2021-10-22 10:15:54 -07:00
Kconfig ifb: Depend on netfilter alternatively to tc 2021-10-26 15:03:37 +01:00
LICENSE.SRC
Makefile
Space.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c net: drivers: get ready for const netdev->dev_addr 2021-10-24 13:59:45 +01:00
macvlan.c net: drivers: get ready for const netdev->dev_addr 2021-10-24 13:59:45 +01:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c net: sb1000,rionet: use eth_hw_addr_set() 2021-10-22 10:16:16 -07:00
sb1000.c net: sb1000,rionet: use eth_hw_addr_set() 2021-10-22 10:16:16 -07:00
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c vrf: run conntrack only in context of lower/physdev for locally generated packets 2021-10-26 13:21:10 +01:00
vsockmon.c
vxlan.c
xen-netfront.c net: xen: use eth_hw_addr_set() 2021-10-22 10:15:54 -07:00