diff options
| author | Benjamin Tissoires <[email protected]> | 2014-10-01 15:59:47 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2014-10-01 18:58:46 +0000 |
| commit | 8493ecca74a7b4a66e19676de1a0f14194179941 (patch) | |
| tree | 9c6af6d86f4cb17ea8d76f1c54a37c3a69c525bd /lib/dynamic_debug.c | |
| parent | HID: uhid: update documentation (diff) | |
| download | kernel-8493ecca74a7b4a66e19676de1a0f14194179941.tar.gz kernel-8493ecca74a7b4a66e19676de1a0f14194179941.zip | |
HID: uHID: fix excepted report type
When uhid_get_report() or uhid_set_report() are called, they emit on the
char device a UHID_GET_REPORT or UHID_SET_REPORT message. Then, the
protocol says that the user space asnwers with UHID_GET_REPORT_REPLY
or UHID_SET_REPORT_REPLY.
Unfortunatelly, the current code waits for an event of type UHID_GET_REPORT
or UHID_SET_REPORT instead of the reply one.
Add 1 to UHID_GET_REPORT or UHID_SET_REPORT to actually wait for the
reply, and validate the reply.
Signed-off-by: Benjamin Tissoires <[email protected]>
Reviewed-by: David Herrmann <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
