Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180828
b: refs/heads/master
c: 722612c
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Jan 5, 2010
1 parent 80bd57a commit 0e66441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf2f765f1896064e34c6f0f2ef896ff058dd5c06
refs/heads/master: 722612cd51cf1b574c89dff57cc5dbedf1f645bb
3 changes: 2 additions & 1 deletion trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
__u32 data;
unsigned n;

if (item->size == 0) {
/* Local delimiter could have value 0, which allows size to be 0 */
if (item->size == 0 && item->tag != HID_LOCAL_ITEM_TAG_DELIMITER) {
dbg_hid("item data expected for local item\n");
return -1;
}
Expand Down

0 comments on commit 0e66441

Please sign in to comment.