[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1A203F5E-FB5E-430C-BEA3-86B191D69D58@holtmann.org>
Date: Wed, 20 Oct 2021 14:59:19 +0200
From: Marcel Holtmann <marcel@...tmann.org>
To: Soenke Huster <soenke.huster@...oes.de>
Cc: Johan Hedberg <johan.hedberg@...il.com>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] Bluetooth: virtio_bt: fix memory leak in
virtbt_rx_handle()
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@...oes.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
Powered by blists - more mailing lists