|
@@ -1096,20 +1096,11 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
|
|
goto nomem;
|
|
goto nomem;
|
|
}
|
|
}
|
|
|
|
|
|
- snprintf(buf, HID_DEBUG_BUFSIZE - 1,
|
|
|
|
- "\nreport (size %u) (%snumbered)\n", size, report_enum->numbered ? "" : "un");
|
|
|
|
- hid_debug_event(hid, buf);
|
|
|
|
-
|
|
|
|
- report = hid_get_report(report_enum, data);
|
|
|
|
- if (!report) {
|
|
|
|
- kfree(buf);
|
|
|
|
- return -1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* dump the report */
|
|
/* dump the report */
|
|
snprintf(buf, HID_DEBUG_BUFSIZE - 1,
|
|
snprintf(buf, HID_DEBUG_BUFSIZE - 1,
|
|
- "report %d (size %u) = ", report->id, size);
|
|
|
|
|
|
+ "\nreport (size %u) (%snumbered) = ", size, report_enum->numbered ? "" : "un");
|
|
hid_debug_event(hid, buf);
|
|
hid_debug_event(hid, buf);
|
|
|
|
+
|
|
for (i = 0; i < size; i++) {
|
|
for (i = 0; i < size; i++) {
|
|
snprintf(buf, HID_DEBUG_BUFSIZE - 1,
|
|
snprintf(buf, HID_DEBUG_BUFSIZE - 1,
|
|
" %02x", data[i]);
|
|
" %02x", data[i]);
|
|
@@ -1117,6 +1108,13 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
|
|
}
|
|
}
|
|
hid_debug_event(hid, "\n");
|
|
hid_debug_event(hid, "\n");
|
|
|
|
|
|
|
|
+ report = hid_get_report(report_enum, data);
|
|
|
|
+
|
|
|
|
+ if (!report) {
|
|
|
|
+ kfree(buf);
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
kfree(buf);
|
|
kfree(buf);
|
|
|
|
|
|
nomem:
|
|
nomem:
|