]> err.no Git - linux-2.6/commit
[Bluetooth] Fix NULL pointer dereference in HCI line discipline
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 9 May 2007 07:15:40 +0000 (09:15 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 May 2007 06:45:05 +0000 (23:45 -0700)
commit22ad42033b7d2b3d7928fba9f89d1c7f8a3c9581
treee07c8da23cb753237effd987f9d31643ec50c65e
parentd215874460e7657b8e104de024140e0932690450
[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>
drivers/bluetooth/hci_ldisc.c