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

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
...@@ -770,7 +770,7 @@ static int hidp_setup_hid(struct hidp_session *session, ...@@ -770,7 +770,7 @@ static int hidp_setup_hid(struct hidp_session *session,
hid = hid_allocate_device(); hid = hid_allocate_device();
if (IS_ERR(hid)) if (IS_ERR(hid))
return PTR_ERR(session->hid); return PTR_ERR(hid);
session->hid = hid; session->hid = hid;
session->req = req; session->req = req;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment