Fix following issues in mt76u initialization error path: - NULL pointer dereference in mt76u_mcu_deinit - possible memory leak in mt76u_buf_free - use-after-free warning since mt76u_queues_deinit is run twice This series has been tested running mt76x0u driver on rpi3+ (dwc_otg controller does not support SG I/O) Lorenzo Bianconi (3): mt76: usb: fix possible NULL pointer dereference in mt76u_mcu_deinit mt76: usb: fix possible memory leak in mt76u_buf_free mt76: usb: do not run mt76u_queues_deinit twice drivers/net/wireless/mediatek/mt76/usb.c | 25 ++++++++++---------- drivers/net/wireless/mediatek/mt76/usb_mcu.c | 8 ++++--- 2 files changed, 17 insertions(+), 16 deletions(-) -- 2.20.1