]> git.baikalelectronics.ru Git - kernel.git/commit
HID: fix bug in zeroing the last field byte in output reports
authorJiri Kosina <jkosina@suse.cz>
Tue, 20 Feb 2007 00:33:39 +0000 (01:33 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 1 Mar 2007 08:52:40 +0000 (09:52 +0100)
commitf889836de206e277b6aba95e92bc3ed5930fdb77
tree5cf1dcafc22987ae5f426719559c9133988a55bf
parent661c065abdfec65c0140b34bf45c74779141836d
HID: fix bug in zeroing the last field byte in output reports

660184db98f1c5135832322bf226375cc5f7bd02 introduced zeroing of the
last field byte in output reports in order to make sure the unused
bits are set to 0. This is done in a wrong way, resulting in a
wrong bits being zeroed out (not properly shifted by the field offset
in the report). Fix this.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c