archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <>
To: Soenke Huster <>
Cc: Johan Hedberg <>,
	Luiz Augusto von Dentz <>,,
Subject: Re: [PATCH v2] Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle()
Date: Wed, 20 Oct 2021 14:59:19 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

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 <>
> ---
> 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.



      parent reply	other threads:[~2021-10-20 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20  8:14 [PATCH v2] Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle() Soenke Huster
2021-10-20  9:17 ` [v2] "
2021-10-20 12:59 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).