Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282310
b: refs/heads/master
c: b4b583d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Nov 16, 2011
1 parent 41b9e93 commit 764af62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 6da7066906e977d42104a859c490f5f9a300488c
refs/heads/master: b4b583d4e9a5ff28c4a150bb25a4fff5cd4dfbbd
5 changes: 2 additions & 3 deletions trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,8 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
return;
}

/* Ignore absolute values that are out of bounds */
if ((usage->type == EV_ABS && (value < field->logical_minimum ||
value > field->logical_maximum))) {
/* Ignore out-of-range values as per HID specification, section 5.10 */
if (value < field->logical_minimum || value > field->logical_maximum) {
dbg_hid("Ignoring out-of-range value %x\n", value);
return;
}
Expand Down

0 comments on commit 764af62

Please sign in to comment.