]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hidp: Only free input device if failed register
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 5 Aug 2011 14:51:50 +0000 (10:51 -0400)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 11 Aug 2011 22:50:28 +0000 (19:50 -0300)
commit16f863eb4a5a4886fcb92c1b1f81e31989adc62e
tree9c35724c899a9e468538b03e3dfffbe8ecfd63dc
parentc0f25a36ce884173ec80d74c758a96551215cee9
Bluetooth: hidp: Only free input device if failed register

When an hidp connection is added for a boot protocol input
device, only free the allocated device if device registration fails.
Subsequent failures should only unregister the device (the input
device api documents that unregister will also free the allocated
device).

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