linux-uconsole/drivers/net/wireless/mediatek
Lorenzo Bianconi 379ba92895 mt76: usb: fix possible memory leak in mt76u_buf_free
[ Upstream commit cb83585e11 ]

Move q->ndesc initialization before the for loop in mt76u_alloc_rx
since otherwise allocated urbs will not be freed in mt76u_buf_free
Double-check scatterlist pointer in mt76u_buf_free

Fixes: b40b15e152 ("mt76: add usb support to mt76 layer")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:23 +01:00
..
mt76 mt76: usb: fix possible memory leak in mt76u_buf_free 2020-01-27 14:50:23 +01:00
mt7601u mt7601u: fix bbp version check in mt7601u_wait_bbp_ready 2020-01-27 14:49:52 +01:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile mt76: add driver code for MT76x2e 2017-12-07 15:35:56 +02:00