Skip to content

Commit

Permalink
HID: core: fix hid delimiter local tag parsing.
Browse files Browse the repository at this point in the history
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.

[jkosina@suse.cz: polish changelog]
Signed-off-by: Paul Chavent <paul.chavent@onera.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Paul Chavent authored and Jiri Kosina committed Jul 12, 2013
1 parent 3366dd9 commit 38ead6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
}
parser->local.delimiter_depth--;
}
return 1;
return 0;

case HID_LOCAL_ITEM_TAG_USAGE:

Expand Down

0 comments on commit 38ead6e

Please sign in to comment.