HID: PTR_ERR return of wrong pointer in hidp_setup_hid()
Subsystems (2)
PATCH 1/1 HID: PTR_ERR return of wrong pointer in hidp_setup_hid()
Return the PTR_ERR of the correct pointer.
Signed-off-by Roel Kluin <[email protected]>
--- net/bluetooth/hidp/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/bluetooth/hidp/core.c +1 -1
@@ -763,7 +763,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;
Marcel Holtmann
maintainerHi Roel,
Quoted 1 line
Return the
PTR_ERRof the correct pointer.
patch has been applied to my tree. Thanks.
Regards
Marcel