OrangePi_CM5/drivers/net/wireless/mediatek/mt76/mt76x2
Lorenzo Bianconi e2dea65052 mt76: fix memory leak if device probing fails
[ Upstream commit bc348defcc6eceeb4f7784bf9a263ddb72fd3fb4 ]

Run mt76_free_device instead of ieee80211_free_hw if device probing
fails in order to remove the already allocated mt76 workqueue

Fixes: a86f1d01f5 ("mt76: move mt76 workqueue in common code")
Fixes: f1d962369d ("mt76: mt7915: implement HE per-rate tx power support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:35 +01:00
..
Kconfig mt76: Add paragraphs to describe the config symbols fully 2019-09-05 17:42:30 +02:00
Makefile mt76: mt76x2: get rid of leftover target 2020-02-14 10:06:04 +01:00
eeprom.c mt76: mt76x2: disable merge of OTP ROM data by default 2020-05-12 19:52:30 +02:00
eeprom.h mt76: move channel state to struct mt76_phy 2020-02-14 10:03:08 +01:00
init.c mt76: mt76x2: avoid starting the MAC too early 2020-02-14 10:06:09 +01:00
mac.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mac.h mt76: mt76x2: move mt76x02_mac_reset_counters in mt76x02_mac_start 2019-11-20 13:23:48 +01:00
mcu.c mt76: move chainmask back to driver specific structs 2020-02-14 10:03:09 +01:00
mcu.h mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mt76x2.h mt76: mt76x2: fix pci suspend/resume on mt7612e 2020-07-21 19:01:16 +02:00
mt76x2u.h mt76: mt76x02u: move mt76x02u_mac_start in mt76x02-usb module 2019-11-20 13:23:48 +01:00
pci.c mt76: fix memory leak if device probing fails 2020-12-30 11:53:35 +01:00
pci_init.c mt76: convert from tx tasklet to tx worker thread 2020-09-24 18:10:18 +02:00
pci_main.c mt76: set runtime stream caps by mt76_phy 2020-05-12 19:52:36 +02:00
pci_mcu.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
pci_phy.c mt76: move txpower and antenna mask to struct mt76_phy 2020-02-14 10:03:09 +01:00
phy.c mt76: add multiple wiphy support to mt76_get_min_avg_rssi 2020-02-14 10:03:09 +01:00
usb.c mt76: move mt76 workqueue in common code 2020-07-21 19:01:16 +02:00
usb_init.c mt76: mt76u: move mcu buffer allocation in mt76x02u drivers 2020-02-14 10:06:05 +01:00
usb_mac.c mt76: move state from struct mt76_dev to mt76_phy 2020-02-14 10:03:08 +01:00
usb_main.c mt76: avoid extra RCU synchronization on station removal 2020-02-14 10:06:09 +01:00
usb_mcu.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
usb_phy.c mt76: move state from struct mt76_dev to mt76_phy 2020-02-14 10:03:08 +01:00