]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix validating IO capability values in mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 17 Jun 2014 12:14:48 +0000 (15:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:43 +0000 (17:42 +0200)
commit8ae02eb29a4ec8b56c11576530e568f938894e0b
treec8607b098a1143c432c003b3befeb37bb4a92947
parent3900af09f0e67bde8eea4b7ec42eba25f19536ce
Bluetooth: Fix validating IO capability values in mgmt commands

The valid range of IO capabilities for the Set IO Capability and Pair
Device mgmt commands is 0-4 (4 being the KeyboarDisplay capability for
SMP). We should return an invalid parameters error if user space gives
us a value outside of this range.

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