Commit 18d88679 authored by Loic Poulain's avatar Loic Poulain Committed by Greg Kroah-Hartman

Bluetooth: Ignore H5 non-link packets in non-active state

commit 48439d501e3d9e8634bdc0c418e066870039599d upstream.

When detecting a non-link packet, h5_reset_rx() frees the Rx skb.
Not returning after that will cause the upcoming h5_rx_payload()
call to dereference a now NULL Rx skb and trigger a kernel oops.
Signed-off-by: default avatarLoic Poulain <>
Signed-off-by: default avatarMarcel Holtmann <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 9ac5d53c
......@@ -406,6 +406,7 @@ static int h5_rx_3wire_hdr(struct hci_uart *hu, unsigned char c)
BT_ERR("Non-link packet received in non-active state");
return 0;
h5->rx_func = h5_rx_payload;
Markdown is supported
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