Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: uinput - allow for max == min during input_absinfo validation

These values are inclusive, so a range of 1 requires min == max.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Peter Hutterer and committed by
Dmitry Torokhov
4fef1250 91a97507

+1 -1
+1 -1
drivers/input/misc/uinput.c
··· 410 410 min = abs->minimum; 411 411 max = abs->maximum; 412 412 413 - if ((min != 0 || max != 0) && max <= min) { 413 + if ((min != 0 || max != 0) && max < min) { 414 414 printk(KERN_DEBUG 415 415 "%s: invalid abs[%02x] min:%d max:%d\n", 416 416 UINPUT_NAME, code, min, max);