]> git.baikalelectronics.ru Git - kernel.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)
commit76393528b5094bb9af01d4eb1041e87fdc081d14
tree0e18aaed28800e7c4e6ae8b591703742d7eac66a
parent1d7aea566940bbf382d2b97de29418d888f9cfed
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