Bluetooth: Fix IRK lookup when tfm_aes is not available
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Aug 2014 06:32:49 +0000 (09:32 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:16 +0000 (08:49 +0200)
commit893ededeb189aa48c308116a7acd793efae5c830
treea4ff68aae0c6d4b09e24a554bd0c1b485b5e764d
parentfabed38fcf456cc5d3e6946fab78855aa65bd40b
Bluetooth: Fix IRK lookup when tfm_aes is not available

If the AES crypto has not been initialized properly we should cleanly
return from the hci_find_irk_by_rpa() function. Right now this will not
happen in practice, but once (in subsequent patches) SMP init is moved
to after the HCI init procedure it is possible that the pointer is NULL.

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