OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
503914c
)
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
author
Roel Kluin
<roel.kluin@gmail.com>
Mon, 7 Dec 2009 13:23:21 +0000
(14:23 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 17 Dec 2009 19:47:20 +0000
(11:47 -0800)
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>
net/bluetooth/hidp/core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hidp/core.c
b/net/bluetooth/hidp/core.c
index
5697500
..
18e7f5a
100644
(file)
--- a/
net/bluetooth/hidp/core.c
+++ b/
net/bluetooth/hidp/core.c
@@
-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;