]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix clearing SMP keys if pairing fails
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Feb 2014 08:10:16 +0000 (10:10 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Feb 2014 10:36:10 +0000 (12:36 +0200)
commit64bb5e42984e992325ad26c5d3d04bf233d5026f
tree1ee15a589cd278f0ac9451434a962f8a64ca92ee
parent69374380f28bdc915f68d4adc38a71d8b5d052f8
Bluetooth: Fix clearing SMP keys if pairing fails

If SMP fails we should not leave any keys (LTKs or IRKs) hanging around
the internal lists. This patch adds the necessary code to
smp_chan_destroy to remove any keys we may have in case of pairing
failure.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c