Bluetooth: Correct packet len calculation
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 30 Dec 2011 10:07:47 +0000 (12:07 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 3 Jan 2012 03:38:37 +0000 (01:38 -0200)
commitc5993de864d96b3656e9fca38c377b130105d97a
treee44d03d2348a89b6bebad1cca98a06006b1ccfaa
parent3542b854bc26e5f8e42e0eab4d7f7453b74a362d
Bluetooth: Correct packet len calculation

Remove unneeded skb_pull and correct packet length calculation
removing magic number. Move BT_DBG after len check otherwise
it could possibly access wrong memory.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c