]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btusb: Fix memleak in btusb_mtk_submit_wmt_recv_urb
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 23 Aug 2020 07:44:21 +0000 (15:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:27 +0000 (10:08 +0100)
commit2e2b67844504923c2a41abea47259ab71ace7f38
treeae104c007e4213925fe81d70eba36e01bbefa82e
parent97811d992adb670594407fbcbdc1e43e869fe85b
Bluetooth: btusb: Fix memleak in btusb_mtk_submit_wmt_recv_urb

[ Upstream commit d33fe77bdf75806d785dabf90d21d962122e5296 ]

When kmalloc() on buf fails, urb should be freed just like
when kmalloc() on dr fails.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btusb.c