Commit 113353e8 authored by David Mosberger's avatar David Mosberger Committed by Vojtech Pavlik

input: Avoid an endless loop in hid-core.c, if a device has some

       empty reports.
parent 176a6024
......@@ -569,8 +569,10 @@ int hidinput_connect(struct hid_device *hid)
while (list != &report_enum->report_list) {
report = (struct hid_report *) list;
if (!report->maxfield)
if (!report->maxfield) {
list = list->next;
continue;
}
if (!hidinput) {
hidinput = kmalloc(sizeof(*hidinput), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment