Skip to content

Commit

Permalink
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Marcel Holtmann committed Dec 17, 2009
1 parent 503914c commit 971beb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 971beb8

Please sign in to comment.