]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 11 Aug 2011 22:50:28 +0000 (19:50 -0300)
commitff062ea109217329b88693bc9081da893eb8b71b
tree25b4920565424ce1afb352299b19633710289681
parent615aedd6e5add8104f031b0d547285652d04d330
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