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

Commit 971beb83 authored by Roel Kluin's avatar Roel Kluin Committed by Marcel Holtmann
Browse files

Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()



Return the PTR_ERR of the correct pointer.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 503914cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -770,7 +770,7 @@ static int hidp_setup_hid(struct hidp_session *session,

	hid = hid_allocate_device();
	if (IS_ERR(hid))
		return PTR_ERR(session->hid);
		return PTR_ERR(hid);

	session->hid = hid;
	session->req = req;