mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
Return the PTR_ERR of the correct pointer. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
503914cf4a
commit
971beb83ae
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue