mirror-linux/drivers/net/wireless
Xiongfeng Wang 2d4b9c7e81 mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()
[ Upstream commit 5938196cc1 ]

As comment of pci_get_device() says, it returns a pci_device with its
refcount increased. We need to call pci_dev_put() to decrease the
refcount. Save the return value of pci_get_device() and call
pci_dev_put() to decrease the refcount.

Fixes: 9093cfff72 ("mt76: mt7915: add support for using a secondary PCIe link for gen1")
Fixes: 2e30db0dde ("mt76: mt7915: add device id for mt7916")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:21 +01:00
..
admtek
ath wifi: ath10k: Fix return value in ath10k_pci_init() 2022-12-31 13:32:12 +01:00
atmel
broadcom wifi: brcmfmac: Fix potential buffer overflow in brcmf_fweh_event_worker() 2022-11-01 13:14:20 +02:00
cisco wifi: airo: do not assign -1 to unsigned char 2022-11-01 11:15:15 +02:00
intel wifi: iwlwifi: mvm: fix double free on tx path. 2022-12-31 13:32:18 +01:00
intersil
marvell treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
mediatek mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2() 2022-12-31 13:32:21 +01:00
microchip wifi: wilc1000: validate number of channels 2022-11-24 18:11:23 +02:00
purelifi wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx() 2022-12-31 13:32:18 +01:00
quantenna treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
ralink wifi: rt2x00: use explicitly signed or unsigned types 2022-10-21 09:59:39 +03:00
realtek wifi: rtl8xxxu: Fix use after rcu_read_unlock in rtl8xxxu_bss_info_changed 2022-12-31 13:32:18 +01:00
rsi wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port 2022-12-31 13:32:09 +01:00
silabs
st treewide: use get_random_{u8,u16}() when possible, part 1 2022-10-11 17:42:58 -06:00
ti treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
zydas
Kconfig
Makefile
mac80211_hwsim.c wifi: mac80211_hwsim: fix debugfs attribute ps with rc table support 2022-10-21 12:37:28 +02:00
mac80211_hwsim.h
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: fix array of flexible structures warning 2022-09-22 09:08:53 +03:00
virt_wifi.c
wl3501.h
wl3501_cs.c