]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix error handling for HCI socket options
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 26 Aug 2013 16:29:39 +0000 (09:29 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 16 Sep 2013 17:35:55 +0000 (14:35 -0300)
commit1e6a1effa0f394323486be1b1c1011961eef7da1
tree4c6128cf06f45de22b2659f7963256ebd37cb8c1
parentb2f80f4e27b3cc13dd1ee8d751fae0c18d5f17a1
Bluetooth: Fix error handling for HCI socket options

The HCI sockets for monitor and control do not support any HCI specific
socket options and if tried, an error will be returned. However the
error used is EINVAL and that is not really descriptive. To make it
clear that these sockets are not handling HCI socket options, return
EBADFD instead.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_sock.c