diff options
| author | Dinghao Liu <[email protected]> | 2021-09-22 13:49:45 +0000 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2021-09-22 14:15:54 +0000 |
| commit | 3e5f2d90c28f9454e421108554707620bc23269d (patch) | |
| tree | 81cadf1ef5deff23807adf63aec496c398b79783 /net/bluetooth/hci_request.c | |
| parent | Bluetooth: hci_ldisc: require CAP_NET_ADMIN to attach N_HCI ldisc (diff) | |
| download | kernel-3e5f2d90c28f9454e421108554707620bc23269d.tar.gz kernel-3e5f2d90c28f9454e421108554707620bc23269d.zip | |
Bluetooth: btmtkuart: fix a memleak in mtk_hci_wmt_sync
bdev->evt_skb will get freed in the normal path and one error path
of mtk_hci_wmt_sync, while the other error paths do not free it,
which may cause a memleak. This bug is suggested by a static analysis
tool, please advise.
Fixes: e0b67035a90b ("Bluetooth: mediatek: update the common setup between MT7622 and other devices")
Signed-off-by: Dinghao Liu <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
