Bluetooth: Ignore H5 non-link packets in non-active state
authorLoic Poulain <loic.poulain@intel.com>
Mon, 23 Jun 2014 15:42:44 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:05:56 +0000 (08:05 -0700)
commit32c24ed1f0b34c1c05df46029eccef426b20f3e5
treed254bbe65f80873710cc2234417fefcc94e3e209
parentd887a032c8d56b4b525f698ac2354876f6a4a5b4
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: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/hci_h5.c