dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Peter Hurley 2011-08-05 10:52:01 -04:00 committed by Gustavo F. Padovan
parent 615aedd6e5
commit ff062ea109
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}