Skip to contentSkip to conversation

HID: PTR_ERR return of wrong pointer in hidp_setup_hid()

PATCH In review Roel Kluin 2 participants 2 messages Dec 7, 2009 – Dec 17, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 HID: PTR_ERR return of wrong pointer in hidp_setup_hid()

Return the PTR_ERR of the correct pointer.

---
 net/bluetooth/hidp/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/bluetooth/hidp/core.c +1 -1
index 49d8495..eae872c 100644
@@ -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;
maintainer
#1 lore raw

Hi Roel,

Quoted 1 line

Return the PTR_ERR of the correct pointer.

patch has been applied to my tree. Thanks.

Regards

Marcel