Bluetooth: Fix crash when ioctl(HCIUARTSETPROTO) fails
authorGustavo F. Padovan <padovan@profusion.mobi>
Tue, 15 Feb 2011 23:22:03 +0000 (20:22 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Feb 2011 19:33:24 +0000 (16:33 -0300)
commitc6f3c5f7f2938d2809bcc15889e9aa212038a554
treea7ba2033d33a2973ad1e0ee3a6ea78aa3dfb78ee
parentde73115a7d67e1b81dbde2285a7657f3e3867703
Bluetooth: Fix crash when ioctl(HCIUARTSETPROTO) fails

If the fail happens the HCI del_timer may timeout after the the hci dev
unregister. This lead to a kernel crash.

Reported-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c