]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix L2CAP Disconnect response for unknown CID
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Sep 2013 10:05:15 +0000 (13:05 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 18 Sep 2013 21:44:32 +0000 (16:44 -0500)
commit4aa8cc66ad8e9eebd9e96a37b610759d5c742703
tree0d9779bbe92424d72d115c81893c780a69d34e4c
parent79186f31e235db0272d5734d2bca5331ddbf7371
Bluetooth: Fix L2CAP Disconnect response for unknown CID

If we receive an L2CAP Disconnect Request for an unknown CID we should
not just silently drop it but reply with a proper Command Reject
response. This patch fixes this by ensuring that the disconnect handler
returns a proper error instead of 0 and will cause the function caller
to send the right response.

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