]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix HCIUARTGETDEVICE ioctl when UART is not registered
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Jul 2014 15:00:29 +0000 (17:00 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 12 Jul 2014 15:37:34 +0000 (18:37 +0300)
commit24f9f8b8cc1efdf9e7a0af9562f09ed3a244cba7
tree66bf2358a905bb0846fbabc79efb02860d81f8c0
parentb9937c72ae5fc777c3f8bd47057da382332a3cc2
Bluetooth: Fix HCIUARTGETDEVICE ioctl when UART is not registered

The protocol for the UART might be configured, but that does not
mean the HCI device is registered. Return an error in that case
and only return the index number when HCI_UART_REGISTERED is set.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_ldisc.c