android_kernel_oneplus_msm8998/net/bluetooth
Matias Karhumaa 993699d9de Bluetooth: Fix faulty expression for minimum encryption key size check
commit eca94432934fe5f141d084f2e36ee2c0e614cc04 upstream.

Fix minimum encryption key size check so that HCI_MIN_ENC_KEY_SIZE is
also allowed as stated in the comment.

This bug caused connection problems with devices having maximum
encryption key size of 7 octets (56-bit).

Fixes: 693cd8ce3f88 ("Bluetooth: Fix regression with minimum encryption key size alignment")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203997
Signed-off-by: Matias Karhumaa <matias.karhumaa@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-10 09:56:38 +02:00
..
bnep Bluetooth: bnep: fix possible might sleep error in bnep_session 2017-08-30 10:19:26 +02:00
cmtp Bluetooth: cmtp: fix possible might sleep error in cmtp_session 2017-08-30 10:19:26 +02:00
hidp Bluetooth: hidp: fix buffer overflow 2019-05-16 19:45:04 +02:00
rfcomm
6lowpan.c
a2mp.c
a2mp.h
af_bluetooth.c
amp.c
amp.h
ecc.c
ecc.h
hci_conn.c Bluetooth: Fix regression with minimum encryption key size alignment 2019-07-10 09:56:33 +02:00
hci_core.c Bluetooth: Send HCI Set Event Mask Page 2 command only when needed 2018-04-13 19:50:21 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c Bluetooth: Fix unnecessary error message for HCI request completion 2019-02-20 10:13:10 +01:00
hci_request.c
hci_request.h
hci_sock.c Bluetooth: Fix decrementing reference count twice in releasing socket 2019-04-27 09:33:47 +02:00
hci_sysfs.c
Kconfig
l2cap_core.c Bluetooth: Fix faulty expression for minimum encryption key size check 2019-07-10 09:56:38 +02:00
l2cap_sock.c
lib.c
Makefile
mgmt.c Bluetooth: SMP: fix crash in unpairing 2018-11-10 07:41:33 -08:00
mgmt_util.c
mgmt_util.h
sco.c Bluetooth: avoid killing an already killed socket 2018-08-22 07:48:37 +02:00
selftest.c
selftest.h
smp.c Bluetooth: SMP: fix crash in unpairing 2018-11-10 07:41:33 -08:00
smp.h Bluetooth: SMP: fix crash in unpairing 2018-11-10 07:41:33 -08:00