Bluetooth: hidp: Don't release device ref if never held
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 5 Aug 2011 14:52:01 +0000 (10:52 -0400)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:22:51 +0000 (12:22 -0800)
commit90e14bb51bba6c4133f78cfea374a533865e4e2c
treedaca865a77cd351fc2c20553849b758eae788e25
parentb29d25c02344b5095d7145ae14e0a28baae8e5b4
Bluetooth: hidp: Don't release device ref if never held

When an hidp connection is added for a boot protocol input
device, don't release a device reference that was never
acquired. The device reference is acquired when the session
is linked to the session list (which hasn't happened yet when
hidp_setup_input is called).

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