]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix sending responses to identified L2CAP response packets
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Sep 2013 10:05:17 +0000 (13:05 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 18 Sep 2013 21:48:32 +0000 (16:48 -0500)
commit777a32c564f76232788733b0d0853c56b6720452
tree5939a685dd15a3a40e39c37b3658c6325f1ca6cd
parent52d71c371165fbdcc96b69c9ff13f2928a2cab8d
Bluetooth: Fix sending responses to identified L2CAP response packets

When L2CAP packets return a non-zero error and the value is passed
onwards by l2cap_bredr_sig_cmd this will trigger a command reject packet
to be sent. However, the core specification (page 1416 in core 4.0) says
the following: "Command Reject packets should not be sent in response to
an identified Response packet.".

This patch ensures that a command reject packet is not sent for any
identified response packet by ignoring the error return value from the
response handler functions.

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