]> git.itanic.dy.fi Git - linux-stable/commit
HID: Increase maximum report size allowed by hid_field_extract()
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 8 Mar 2019 05:11:17 +0000 (13:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:22:47 +0000 (07:22 +0200)
commit8c284dd4a8522160b95a4500cb871637a7ed169f
tree817e06340bb968830dfc2735e945c0cbf224b3b7
parent4c01ab81fa27e84502737785716931be76007541
HID: Increase maximum report size allowed by hid_field_extract()

[ Upstream commit 94a9992f7dbdfb28976b565af220e0c4a117144a ]

Commit 71f6fa90a353 ("HID: increase maximum global item tag report size
to 256") increases the max report size from 128 to 256.

We also need to update the report size in hid_field_extract() otherwise
it complains and truncates now valid report size:
[ 406.165461] hid-sensor-hub 001F:8086:22D8.0002: hid_field_extract() called with n (192) > 32! (kworker/5:1)

BugLink: https://bugs.launchpad.net/bugs/1818547
Fixes: 71f6fa90a353 ("HID: increase maximum global item tag report size to 256")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
drivers/hid/hid-core.c