]> git.ipfire.org Git - people/arne_f/kernel.git/commit
[Bluetooth] Fix NULL pointer dereference in HCI line discipline
authorOhad Ben-Cohen <ohad@bencohen.org>
Fri, 2 Nov 2007 03:41:26 +0000 (04:41 +0100)
committerAdrian Bunk <bunk@kernel.org>
Fri, 2 Nov 2007 03:41:26 +0000 (04:41 +0100)
commit9ebf0663c8af671f9d37f9d51eb80e26a5b1fe2b
tree6d6507a2f2a82a5e3a3372efe642554dc5e6b077
parent8e99f6e590f3b3790697bb324ba3d59f1a99f08a
[Bluetooth] Fix NULL pointer dereference in HCI line discipline

Normally a serial Bluetooth device is opened, TIOSETD'ed to N_HCI line
discipline, HCIUARTSETPROTO'ed and finally closed. In case the device
fails to HCIUARTSETPROTO, closing it produces a NULL pointer dereference.

Signed-off-by: Ohad Ben-Cohen <ohad@bencohen.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/bluetooth/hci_ldisc.c