]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commited49ea605204d1d55986547ab5d36d985ddcfba4
tree7a7143c1b29b902122fe5e17a10ad4cb2ec66291
parentb1a84498dda9d384a6544d11b4a109156639faaa
[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