]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix missing hdev locking in smp_cmd_ident_addr_info
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 27 Jun 2014 11:23:02 +0000 (14:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:47 +0000 (17:42 +0200)
commita64bba00e4d4e13d1e74d8c5403c56928534103e
treef5b3206863e45f044864e510022f3393ac5cc4ed
parentffa31bdaf51147712a83217a30db636d98ccc73f
Bluetooth: Fix missing hdev locking in smp_cmd_ident_addr_info

The hdev lock must be held before calling into smp_distribute_keys. Also
things such as hci_add_irk() require the lock. This patch fixes the
issue by adding the necessary locking into the smp_cmd_ident_addr_info
function.

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