summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath6kl/common.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-05-28 13:46:30 +0300
committerBen Hutchings <ben@decadent.org.uk>2013-06-19 02:16:58 +0100
commit90647b580ec248f93a3b8dceb4bcc4ca6dc325d3 (patch)
treedebaee6490b834e61f24a62e0f46a42b5adcacb5 /drivers/net/wireless/ath/ath6kl/common.h
parent8548c6942cbce6a38d3dd9e218e043dd1e1941d0 (diff)
Bluetooth: Fix missing length checks for L2CAP signalling PDUs
commit cb3b3152b2f5939d67005cff841a1ca748b19888 upstream. There has been code in place to check that the L2CAP length header matches the amount of data received, but many PDU handlers have not been checking that the data received actually matches that expected by the specific PDU. This patch adds passing the length header to the specific handler functions and ensures that those functions fail cleanly in the case of an incorrect amount of data. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com> [bwh: Backported to 3.2: - Adjust context - Move uses of *req below the new check in l2cap_connect_req] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/common.h')
0 files changed, 0 insertions, 0 deletions