Skip to content

Commit

Permalink
Bluetooth: hidp: Don't release device ref if never held
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
peterhurley authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent 615aedd commit ff062ea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,6 @@ static int hidp_setup_input(struct hidp_session *session,
if (err < 0) {
input_free_device(input);
session->input = NULL;
hci_conn_put_device(session->conn);
return err;
}

Expand Down

0 comments on commit ff062ea

Please sign in to comment.