[Bluetooth] Fix NULL pointer dereferences of the HCI socket
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Feb 2006 10:40:03 +0000 (11:40 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Feb 2006 10:40:03 +0000 (11:40 +0100)
commit7b005bd34c895ebeefd1c62f90a329730b88946b
tree7a7143c1b29b902122fe5e17a10ad4cb2ec66291
parent56f3a40a5e7586043260669cc794e56fa58339e1
[Bluetooth] Fix NULL pointer dereferences of the HCI socket

This patch fixes the two NULL pointer dereferences found by the sfuzz
tool from Ilja van Sprundel. The first one was a call of getsockname()
for an unbound socket and the second was calling accept() while this
operation isn't implemented for the HCI socket interface.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c