Re: [PATCH v2] Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle()

From: Marcel Holtmann
Date: Wed Oct 20 2021 - 08:59:24 EST


Hi Soenke,

> On the reception of packets with an invalid packet type, the memory of
> the allocated socket buffers is never freed. Add a default case that frees
> these to avoid a memory leak.
>
> Signed-off-by: Soenke Huster <soenke.huster@xxxxxxxxx>
> ---
> Changes in v2:
> - Add break; to default case
>
> drivers/bluetooth/virtio_bt.c | 3 +++
> 1 file changed, 3 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel