]> 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)
commit6c638c88d259dbb47c4164ce4bfa765926022d3e
treef5b3206863e45f044864e510022f3393ac5cc4ed
parent1f8677980a245d249684db89b5555c353fda4cef
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