Messages in this thread | | | Subject | Re: [PATCH v2] Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle() | From | Marcel Holtmann <> | Date | Wed, 20 Oct 2021 14:59:19 +0200 |
| |
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@eknoes.de> > --- > 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
| |