]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Fix validating LE PSM values
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Oct 2013 11:55:46 +0000 (13:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:36 +0000 (07:05 -0800)
commit4946096d43d1d02fb07cc80f82e1747b01571c41
tree0e18aaed28800e7c4e6ae8b591703742d7eac66a
parente77af7559238895ec5fd1706762e1c9f890dcc7e
Bluetooth: Fix validating LE PSM values

LE PSM values have different ranges than those for BR/EDR. The valid
ranges for fixed, SIG assigned values is 0x0001-0x007f and for dynamic
PSM values 0x0080-0x00ff. We need to ensure that bind() and connect()
calls conform to these ranges when operating on LE CoC sockets.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c