commit | 4ec86d4c86fe563482f183243f15bcd5fd3e65c5 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Tue Jun 17 15:14:48 2014 +0300 |
committer | Marcel Holtmann <marcel@holtmann.org> | Thu Jul 03 17:42:43 2014 +0200 |
tree | c8607b098a1143c432c003b3befeb37bb4a92947 | |
parent | 8ba8b4c05c3562d771fbfd2e7ee5648b41f04a9d [diff] |
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>