Re: [PATCH] Bluetooth: hci_bcsp: Fix memory leak in rx_skb

From: Marcel Holtmann
Date: Sat Jul 06 2019 - 07:03:31 EST


Hi Tomas,

> Syzkaller found that it is possible to provoke a memory leak by
> never freeing rx_skb in struct bcsp_struct.
>
> Fix by freeing in bcsp_close()
>
> Signed-off-by: Tomas Bortoli <tomasbortoli@xxxxxxxxx>
> Reported-by: syzbot+98162c885993b72f19c4@xxxxxxxxxxxxxxxxxxxxxxxxx
> ---
> drivers/bluetooth/hci_bcsp.c | 4 ++++
> 1 file changed, 4 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel