Bluetooth: hidp: safely acquire hci connection
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 30 Aug 2011 15:53:35 +0000 (11:53 -0400)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 7 Oct 2011 04:43:10 +0000 (01:43 -0300)
commit1785dbf9e30be62ab45e34900e574b8307bc98b5
tree0f5c033aeb98f1b1ff4c1285798244b9093a4b5a
parentab88f7149e0e3284623adcaa60460a9a69d9f131
Bluetooth: hidp: safely acquire hci connection

Claim device lock to safely enumerate hci connection list and bump
hci connection proxy device ref count simultaneously.

This patch incorporates David Herrmann's fix to prevent adding an
HID device when the hci connection no longer exists.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hidp/core.c