Lorenzo BianconiandFelix Fietkau c2877bcf45 mt76: usb: fix possible memory leak in mt76u_buf_free
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: b40b15e1521f ("mt76: add usb support to mt76 layer")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2019-02-18 20:39:41 +01:00
2015-12-13 17:54:16 +01:00
2018-10-08 13:47:02 +02:00
2018-10-23 11:14:20 +02:00
2016-09-04 17:33:28 +02:00
2019-01-25 15:22:41 +01:00
2018-10-23 09:49:40 +02:00
2019-01-11 15:24:32 +01:00
2016-09-04 18:06:48 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%