]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add dedicated AES instance for each SMP context
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 27 Jun 2014 11:23:03 +0000 (14:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:47 +0000 (17:42 +0200)
commit5c2f5e0979bb0587ff582d43e4c2686b98b18ff2
tree27e16726a191933d391c3db58ab2fc6625463d44
parent6c638c88d259dbb47c4164ce4bfa765926022d3e
Bluetooth: Add dedicated AES instance for each SMP context

Many places have to be extra careful to not hold the hdev lock when
calling into the SMP code. This is because the SMP crypto functions use
the crypto handle that's part of the hci_dev struct. Giving the SMP
context its own handle helps simplifying the locking logic and removes
the risk for deadlocks.

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