projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea5454
)
HID: propagate return value correctly in hid_input_report()
author
Jiri Kosina
<jkosina@suse.cz>
Wed, 10 Aug 2011 12:02:59 +0000
(14:02 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 10 Aug 2011 12:02:59 +0000
(14:02 +0200)
Fix a return value propagation that was omitted in David Herrmann's
locking fix around hid_input_report().
Reported-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-core.c
b/drivers/hid/hid-core.c
index
f9cff93
..
bf1f740
100644
(file)
--- a/
drivers/hid/hid-core.c
+++ b/
drivers/hid/hid-core.c
@@
-1086,7
+1086,7
@@
int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
struct hid_report *report;
char *buf;
unsigned int i;
- int ret;
+ int ret
= 0
;
if (!hid)
return -ENODEV;
@@
-1145,7
+1145,7
@@
nomem:
unlock:
up(&hid->driver_lock);
- return
0
;
+ return
ret
;
}
EXPORT_SYMBOL_GPL(hid_input_report);