]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_bcm: Fix crash on suspend
authorFrederic Danis <frederic.danis@linux.intel.com>
Fri, 28 Aug 2015 13:44:00 +0000 (15:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Aug 2015 19:09:14 +0000 (21:09 +0200)
commit1aa1a1a7bf9c5a57b68a08788a85cdb9ab5db1b8
tree8a851c48960641f5e54f4ff5adea54f0f833abd6
parent0ea95fda9240400eb3cc4fffca156b84c5c562c1
Bluetooth: hci_bcm: Fix crash on suspend

If bcm_suspend is called whithout device opened there is a crash as
it tries to use bdev->hu which is NULL.
Rename bcm_device_list_lock to bcm_device_lock as it does not only apply
to bcm_device_list.

Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c