]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check for valid key->authenticated value for LTKs
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:17 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 03:57:04 +0000 (01:57 -0200)
commit2fc52e39191ec3fe421b4891a0d0746bc96287af
treead495d9369bc9616a247a16059bb2537895a49b0
parent9391589ba0073859b2875dcfd5beba7431703885
Bluetooth: Check for valid key->authenticated value for LTKs

This patch adds necessary checks for the two allowed values of the
authenticated parameter of each Long Term Key, i.e. 0x00 and 0x01. If
any other value is encountered the valid response is to return invalid
params to user space.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c