]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix handling of getpeername() for HCI sockets
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 26 Aug 2013 07:06:30 +0000 (00:06 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 16 Sep 2013 17:35:54 +0000 (14:35 -0300)
commit22d551d478902d1b9004fbe1777366c1b6710731
treed18bbd420c190a7db64abdb66fb89cede2e0eb8f
parent547c03592329e5eb05dd7b9d69ae0c52da92aac2
Bluetooth: Fix handling of getpeername() for HCI sockets

The HCI sockets do not have a peer associated with it and so make sure
that getpeername() returns EOPNOTSUPP since this operation is actually
not supported on HCI sockets.

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