]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix RFCOMM usage of in-kernel L2CAP sockets
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Feb 2009 20:49:33 +0000 (21:49 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:48 +0000 (06:14 +0100)
commitb282d95f18282b0b523e70ecc6cb64ae36a1e0cf
tree7bf4d14be4acbc9f9198d5dedb5ed5fb9badb729
parentceddf9f281526b0b0e225aca0a4e35b0d9477b97
Bluetooth: Fix RFCOMM usage of in-kernel L2CAP sockets

The CID value of L2CAP sockets need to be set to zero. All userspace
applications do this via memset() on the sockaddr_l2 structure. The
RFCOMM implementation uses in-kernel L2CAP sockets and so it has to
make sure that l2_cid is set to zero.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c