From: Johan Hedberg Date: Wed, 9 Jan 2013 14:05:19 +0000 (+0200) Subject: Bluetooth: Fix checking for exact values of boolean mgmt parameters X-Git-Tag: v3.9-rc1~139^2~2^2^2~42^2~49^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e80f25ae2296d78163d75d753c796270464000;p=pandora-kernel.git Bluetooth: Fix checking for exact values of boolean mgmt parameters All mgmt_set_* commands that take a boolean value encoded in the form of a byte should only accept the values 0x00 and 0x01. This patch adds the necessary checks for this and returns "invalid params" responses if anything else is provided as the value. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed