From: Johan Hedberg Date: Thu, 17 Jul 2014 08:56:33 +0000 (+0300) Subject: Bluetooth: Fix using uninitialized variable when pairing X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~17^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f743d7499bc2c4dc8c35af33bdb2a29bea663b9;p=pandora-kernel.git Bluetooth: Fix using uninitialized variable when pairing Commit 6c53823ae0e10e723131055e1e65dd6a328a228e reshuffled the way the authentication requirement gets set in the hci_io_capa_request_evt() function, but at the same time it failed to update an if-statement where cp.authentication is used before it has been initialized. The correct value the code should be looking for in this if-statement is conn->auth_type. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann Cc: stable@vger.kernel.org # 3.16 --- Reading git-diff-tree failed