From: Johan Hedberg Date: Mon, 16 Sep 2013 10:05:17 +0000 (+0300) Subject: Bluetooth: Fix sending responses to identified L2CAP response packets X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9245e7375816c4d94d6327c8761b3c7431a5bc2f;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed