]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix L2CAP error return used for failed channel lookups
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Sep 2013 10:05:14 +0000 (13:05 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 18 Sep 2013 21:43:40 +0000 (16:43 -0500)
commit79186f31e235db0272d5734d2bca5331ddbf7371
treeda87469543c36e40c7eeb1ad1b22d14c16ec06cf
parent94b2ba162da6d34c4a015e447492624013d40a52
Bluetooth: Fix L2CAP error return used for failed channel lookups

The EFAULT error should only be used for memory address related errors
and ENOENT might be needed for other purposes than invalid CID errors.
This patch fixes the l2cap_config_req, l2cap_connect_create_rsp and
l2cap_create_channel_req handlers to use the unique EBADSLT error to
indicate failed lookups on a given CID.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c