From: Johan Hedberg Date: Mon, 16 Sep 2013 10:05:14 +0000 (+0300) Subject: Bluetooth: Fix L2CAP error return used for failed channel lookups X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21870b523e847432312a1b62239ad139369e9f9f;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed