Do not schedule {tx,rx}_tasklet when the usb dongle is disconnected in order to fix
{TX,RX} urb mismatch warning
Fix possible memory leak when the device is disconnected while passing traffic.
Changes since v1:
- move tasklet_kill back in mt7601u_dma_cleanup
- add more comments and improve commit messages
Lorenzo Bianconi (2):
mt7601u: do not schedule rx_tasklet when the device has been
disconnected
mt7601u: fix possible memory leak when the device is disconnected
drivers/net/wireless/mediatek/mt7601u/dma.c | 54 +++++++++++++--------
drivers/net/wireless/mediatek/mt7601u/tx.c | 4 +-
2 files changed, 36 insertions(+), 22 deletions(-)
--
2.21.0
On Fri, 7 Jun 2019 13:48:08 +0200, Lorenzo Bianconi wrote:
> Do not schedule {tx,rx}_tasklet when the usb dongle is disconnected in order to fix
> {TX,RX} urb mismatch warning
> Fix possible memory leak when the device is disconnected while passing traffic.
Acked-by: Jakub Kicinski <[email protected]>
Thanks Lorenzo!