]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: hid-sensor-hub: Fix issue with devices with no report ID
authorPablo Ceballos <pceballos@google.com>
Tue, 3 Nov 2020 00:29:39 +0000 (19:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:48:08 +0000 (08:48 +0100)
commitefb042598b5f4ad57a4260f5fbfb7e88f313c5ab
treee6a752a033655d8ad941213b3980a9b98f9b1075
parent94b6e6ee174193d65c6f6e47a1f8847d85325544
HID: hid-sensor-hub: Fix issue with devices with no report ID

[ Upstream commit 34a9fa2025d9d3177c99351c7aaf256c5f50691f ]

Some HID devices don't use a report ID because they only have a single
report. In those cases, the report ID in struct hid_report will be zero
and the data for the report will start at the first byte, so don't skip
over the first byte.

Signed-off-by: Pablo Ceballos <pceballos@google.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-sensor-hub.c