From: Johan Hedberg Date: Thu, 29 May 2014 16:36:53 +0000 (+0300) Subject: Bluetooth: Fix properly ignoring LTKs of unknown types X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~50^2^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61b433579b6ffecb1d3534fd482dcd48535277c8;p=pandora-kernel.git Bluetooth: Fix properly ignoring LTKs of unknown types 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 Signed-off-by: Marcel Holtmann Cc: stable@vger.kernel.org --- Reading git-diff-tree failed