aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2011-08-05 10:52:01 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-08-11 18:50:28 -0400
commitff062ea109217329b88693bc9081da893eb8b71b (patch)
tree25b4920565424ce1afb352299b19633710289681 /net
parent615aedd6e5add8104f031b0d547285652d04d330 (diff)
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>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hidp/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index a859f9078df6..fb68f344c34a 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -844,7 +844,6 @@ static int hidp_setup_input(struct hidp_session *session,
844 if (err < 0) { 844 if (err < 0) {
845 input_free_device(input); 845 input_free_device(input);
846 session->input = NULL; 846 session->input = NULL;
847 hci_conn_put_device(session->conn);
848 return err; 847 return err;
849 } 848 }
850 849