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)
commit4ec86d4c86fe563482f183243f15bcd5fd3e65c5
treec8607b098a1143c432c003b3befeb37bb4a92947
parent8ba8b4c05c3562d771fbfd2e7ee5648b41f04a9d
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
This page took 0.024486 seconds and 5 git commands to generate.