]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: input: fix assignment of .value
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 18 Apr 2019 07:47:41 +0000 (09:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 05:59:59 +0000 (07:59 +0200)
commit0e3b0666fbe80dd239ea3d07c71d3d787eaf80b4
tree2a490f932e1f917e0300a8a5ff80d4775925e41a
parent76f693f078d2e77ab85737d4d5ac07f041578d1f
HID: input: fix assignment of .value

commit 39b3c3a5fbc5d744114e497d35bf0c12f798c134 upstream.

The value field is actually an array of .maxfield. We should assign the
correct number to the correct usage.

Not that we never encounter a device that requires this ATM, but better
have the proper code path.

Fixes: 2dc702c991e377 ("HID: input: use the Resolution Multiplier for
       high-resolution scrolling")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-input.c