]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: btusb: fix memory leak
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Tue, 13 Apr 2021 17:52:08 +0000 (22:52 +0500)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:25 +0000 (07:12 +0200)
commit44e936d7459cac598d9fe0b6d23cc9d12b648d5e
tree6c467228768b82a2038486f039afdbbacf8f9317
parent393dc5d19c825906f955210f10ee3befc39854f7
Bluetooth: btusb: fix memory leak

If btusb_mtk_submit_wmt_recv_urb returns error, wc should be freed and
then error should be returned to prevent memory leak.

Addresses-Coverity: ("Prevent memory leak")
Fixes: 4cbb375e997d ("Bluetooth: btusb: Fixed too many in-token issue for Mediatek Chip.")
Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c