commit | 3168c19d7eb17a0108a3b60ad8e8c1b18ea05c63 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Fri Nov 29 17:36:35 2019 +0000 |
committer | Marcel Holtmann <marcel@holtmann.org> | Fri Nov 29 20:21:33 2019 +0100 |
tree | f53b6a2d7e9cc803887c6ae14881ee474cb8c51d | |
parent | 22cc6b7a1dbb58da4afc539d9b7d470b23a25eea [diff] |
Bluetooth: btusb: fix memory leak on fw Currently the error return path when the call to btusb_mtk_hci_wmt_sync fails does not free fw. Fix this by returning via the error_release_fw label that performs the free'ing. Addresses-Coverity: ("Resource leak") Fixes: a1c49c434e15 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>