Re: [PATCH v2 1/2] HID: reject input outside logical range only if null state is set
From: Jiri Kosina
Date: Mon Mar 06 2017 - 08:24:52 EST
On Tue, 14 Feb 2017, Tomasz Kramkowski wrote:
> From: Valtteri Heikkilà <rnd@xxxxxx>
>
> This patch fixes an issue in drivers/hid/hid-input.c where USB HID
> control null state flag is not checked upon rejecting inputs outside
> logical minimum-maximum range. The check should be made according to USB
> HID specification 1.11, section 6.2.2.5, p.31. The fix will resolve
> issues with some game controllers, such as:
> https://bugzilla.kernel.org/show_bug.cgi?id=68621
>
> [tk@xxxxxxxxxx: shortened and fixed spelling in commit message]
> Signed-off-by: Valtteri Heikkilà <rnd@xxxxxx>
> Signed-off-by: Tomasz Kramkowski <tk@xxxxxxxxxx>
Applied to for-4.12/hid-core-null-state-handling. Thanks,
--
Jiri Kosina
SUSE Labs