summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJupeng Zhong <zhongjupeng@yulong.com>2021-02-02 09:39:13 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-02-02 17:25:46 +0100
commitde71a6cb4bf24d8993b9ca90d1ddb131b60251a1 (patch)
tree1a1519d84f484482fd50d6158a56669683db5315 /net/bluetooth
parente8bd76ede155fd54d8c41d045dda43cd3174d506 (diff)
downloadlinux-stable-de71a6cb4bf24d8993b9ca90d1ddb131b60251a1.tar.gz
linux-stable-de71a6cb4bf24d8993b9ca90d1ddb131b60251a1.tar.bz2
linux-stable-de71a6cb4bf24d8993b9ca90d1ddb131b60251a1.zip
Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv
In btusb_mtk_wmt_recv if skb_clone fails, the alocated skb should be released. Omit the labels “err_out” and “err_free_skb” in this function implementation so that the desired exception handling code would be directly specified in the affected if branches. Fixes: a1c49c434e15 ("btusb: Add protocol support for MediaTek MT7668U USB devices") Signed-off-by: Jupeng Zhong <zhongjupeng@yulong.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions