Skip to content

Commit ff062ea

Browse files
peterhurleyGustavo F. Padovan
authored andcommitted
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>
1 parent 615aedd commit ff062ea

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/bluetooth/hidp/core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,6 @@ static int hidp_setup_input(struct hidp_session *session,
844844
if (err < 0) {
845845
input_free_device(input);
846846
session->input = NULL;
847-
hci_conn_put_device(session->conn);
848847
return err;
849848
}
850849

0 commit comments

Comments
 (0)