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)
committerJaikumar Ganesh <jaikumar@google.com>
Fri, 12 Aug 2011 01:42:58 +0000 (18:42 -0700)
commit3bded00785e6c763e82afa989a17402f84a8cc4c
treee96e0df08bc657641af91581f0489242945d1023
parente5e416a4151ee182a05bb3cbbbda8f4d54e83400
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