From: Johan Hedberg Date: Tue, 17 Jun 2014 12:14:48 +0000 (+0300) Subject: Bluetooth: Fix validating IO capability values in mgmt commands X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~186 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ec86d4c86fe563482f183243f15bcd5fd3e65c5;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed