From: Johan Hedberg Date: Tue, 28 May 2013 10:46:30 +0000 (+0300) Subject: Bluetooth: Fix missing length checks for L2CAP signalling PDUs X-Git-Tag: v3.10-rc6~18^2^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb3b3152b2f5939d67005cff841a1ca748b19888;p=pandora-kernel.git Bluetooth: Fix missing length checks for L2CAP signalling PDUs 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 Cc: stable@vger.kernel.org Signed-off-by: Gustavo Padovan Signed-off-by: John W. Linville --- Reading git-diff-tree failed