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)
commit917522aae169ad02010dcee6ae42c16155bcd285
tree8a851c48960641f5e54f4ff5adea54f0f833abd6
parent618353b1f34947b3a399d6f51934f10df40e42ff
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