mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
uinput_alloc_device() is supposed to return the number of bytes read, the value is returned to uinput_write() and from there to userspace. If EV_ABS is set then it returns the value from uinput_validate_absbits() instead, which is zero when everything is ok instead of the count. Signed-off-by: Ian Campbell <[email protected]> Acked-by: Aristeu Rozanski <[email protected]> Signed-off-by: Vojtech Pavlik <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>