* [PATCH] HID: PTR_ERR return of wrong pointer in hidp_setup_hid()
@ 2009-12-07 13:23 Roel Kluin
2009-12-17 19:48 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-12-07 13:23 UTC (permalink / raw)
To: Marcel Holtmann, linux-bluetooth, Andrew Morton, LKML
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
net/bluetooth/hidp/core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 49d8495..eae872c 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: PTR_ERR return of wrong pointer in hidp_setup_hid()
2009-12-07 13:23 [PATCH] HID: PTR_ERR return of wrong pointer in hidp_setup_hid() Roel Kluin
@ 2009-12-17 19:48 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2009-12-17 19:48 UTC (permalink / raw)
To: Roel Kluin; +Cc: linux-bluetooth, Andrew Morton, LKML
Hi Roel,
> Return the PTR_ERR of the correct pointer.
patch has been applied to my tree. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-17 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 13:23 [PATCH] HID: PTR_ERR return of wrong pointer in hidp_setup_hid() Roel Kluin
2009-12-17 19:48 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).