diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2019-02-10 22:49:14 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 19:55:50 +0100 |
commit | cb83585e1121bd6d6c039cf09fa32380bf8b6258 (patch) | |
tree | e5b99c17950e303e3a26a7ad1fafb045befb86c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bdba48d57a5509a6531e162394f157250d893aaf (diff) |
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 <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions