OSDN Git Service

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:00:02 +0000 (08:00 -0700)
commit18d8867933b9df6b51afa3b5694d82dd88bb46e2
treefa9b47289f8cc0eb8f84adc3418a4cea9189684d
parent9ac5d53ca3d2c5b849a57227cc5b0c958692cfdb
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