Revert "HID: Increase maximum report size allowed by hid_field_extract()"
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 5 Jun 2019 12:44:05 +0000 (14:44 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 5 Jun 2019 13:14:53 +0000 (15:14 +0200)
commit15fc1b5c86128f91c8c6699c3b0d9615740b13f1
tree174f6e72c44865a3c03973e881649c636e87f098
parentabf82e8f7e9af40a49e3d905187c662a43c96c8f
Revert "HID: Increase maximum report size allowed by hid_field_extract()"

This reverts commit 94a9992f7dbdfb28976b565af220e0c4a117144a.

The commit allows for more than 32 bits in hid_field_extract(),
but the return value is a 32 bits int.
So basically what this commit is doing is just silencing those
legitimate errors.

Revert to a previous situation in the hope that a proper
fix will be impletemented.

Fixes: 94a9992f7dbd ("HID: Increase maximum report size allowed by hid_field_extract()")
Cc: stable@vger.kernel.org # v5.1
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-core.c