]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c107b1c35f5f21efd5e1440ad09af50bd651bfc
tree0f5c033aeb98f1b1ff4c1285798244b9093a4b5a
parent9c737834d1640d7fd6220f8482f04281247f6fd1
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