]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix endianness issue with L2CAP MPS configuration
authorMat Martineau <mathewm@codeaurora.org>
Thu, 5 Aug 2010 22:54:22 +0000 (15:54 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 10 Aug 2010 11:59:09 +0000 (07:59 -0400)
commit4c69afb94dd8bc673dd201812a6c2819a2fe5bce
tree0c3834245d1fec2fc843b6b81f3d02e437f67705
parent3e696ba4e222d5991883a837288ecda39dd8ece4
Bluetooth: Fix endianness issue with L2CAP MPS configuration

Incoming configuration values must be converted to native CPU order
before use.  This fixes a bug where a little-endian MPS value is
compared to a native CPU value.  On big-endian processors, this
can cause ERTM and streaming mode segmentation to produce PDUs
that are larger than the remote stack is expecting, or that would
produce fragmented skbs that the current FCS code cannot handle.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c