diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 7452399501b4..aeeb6798e2f1 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -880,7 +880,7 @@ static void hid_output_field(struct hid_field *field, __u8 *data) | |||
880 | 880 | ||
881 | /* make sure the unused bits in the last byte are zeros */ | 881 | /* make sure the unused bits in the last byte are zeros */ |
882 | if (count > 0 && size > 0) | 882 | if (count > 0 && size > 0) |
883 | data[(count*size-1)/8] = 0; | 883 | data[(offset+count*size-1)/8] = 0; |
884 | 884 | ||
885 | for (n = 0; n < count; n++) { | 885 | for (n = 0; n < count; n++) { |
886 | if (field->logical_minimum < 0) /* signed values */ | 886 | if (field->logical_minimum < 0) /* signed values */ |