Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 38ead6e

Browse files
Paul ChaventJiri Kosina
authored andcommitted
HID: core: fix hid delimiter local tag parsing.
When device with the DELIMITER tag in its report descriptor is encountered during parsing, it's mistakenly immediately refused by HID core for no justifiable reason. [[email protected]: polish changelog] Signed-off-by: Paul Chavent <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 3366dd9 commit 38ead6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
450450
}
451451
parser->local.delimiter_depth--;
452452
}
453-
return 1;
453+
return 0;
454454

455455
case HID_LOCAL_ITEM_TAG_USAGE:
456456

0 commit comments

Comments
 (0)