]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: btmtk: fix urb->setup_packet leak in error paths
authorJiajia Liu <liujiajia@kylinos.cn>
Mon, 18 May 2026 02:24:02 +0000 (10:24 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 20 May 2026 20:35:47 +0000 (16:35 -0400)
commitdd1dda6b8d6e1f4376a5b3055a04f0ecbdb4d6bd
treedba60ea7c1d05d84411b2831d81d8f5293e24041
parent84c24fb151fc1179355296d7ff29129ac7c42129
Bluetooth: btmtk: fix urb->setup_packet leak in error paths

The setup_packet of control urb is not freed if usb_submit_urb fails or
the submitted urb is killed. Add free in these two paths.

Fixes: a1c49c434e150 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices")
Signed-off-by: Jiajia Liu <liujiajia@kylinos.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtk.c