Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff062ea1 authored by Peter Hurley's avatar Peter Hurley Committed by Gustavo Padovan
Browse files

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: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 615aedd6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}