Skip to content
Commit cf94da6f authored by Tomas Bortoli's avatar Tomas Bortoli Committed by Marcel Holtmann
Browse files

Bluetooth: Fix invalid-free in bcsp_close()



Syzbot reported an invalid-free that I introduced fixing a memleak.

bcsp_recv() also frees bcsp->rx_skb but never nullifies its value.
Nullify bcsp->rx_skb every time it is freed.

Signed-off-by: default avatarTomas Bortoli <tomasbortoli@gmail.com>
Reported-by: default avatar <syzbot+a0d209a4676664613e76@syzkaller.appspotmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 41d5b25f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment