Bluetooth: SMP: Fail if remote and local public keys are identical
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 10 Mar 2021 22:13:08 +0000 (14:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 May 2021 09:47:01 +0000 (11:47 +0200)
commit4555cee33f7d75c1ee69902c872c9d1e9568ebd5
treeda3c068cde0e600dd7643406377bbfd6469bd9d7
parented60687f1fb46c988d8efdd1b350c1a1a51332d3
Bluetooth: SMP: Fail if remote and local public keys are identical

commit 6d19628f539fccf899298ff02ee4c73e4bf6df3f upstream.

This fails the pairing procedure when both remote and local non-debug
public keys are identical.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/smp.c