Files
linux/net/bluetooth
Johan Hedberg 01233a9c83 Bluetooth: Fix properly ignoring LTKs of unknown types
commit 61b433579b upstream.

In case there are new LTK types in the future we shouldn't just blindly
assume that != MGMT_LTK_UNAUTHENTICATED means that the key is
authenticated. This patch adds explicit checks for each allowed key type
in the form of a switch statement and skips any key which has an unknown
value.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-30 20:14:03 -07:00
..
2014-06-30 20:13:59 -07:00