OSDN Git Service

input-raw: Handling of EVIOCGBIT() ioctl coding
authorChris Larson <clarson@kergoth.com>
Wed, 30 Sep 2009 21:25:09 +0000 (21:25 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 30 Sep 2009 21:25:09 +0000 (21:25 +0000)
commit4f4d8e97b3d3197fa91ad0d7113e6b466a7f5b1f
treefb77d5b709f6392d77338c66f13899adde76f09c
parent29016b8fe1965f6b7ee91bba453e3f2140bbe504
input-raw: Handling of EVIOCGBIT() ioctl coding

Correct the coding of ioctl() when using EVIOCGBIT() macro.
Indeed, instead of a number of bits, this field requires
a size in bytes.
This bug is described in the Linux kernel drivers/input/evdev.c
file and in this webpage:
http://userweb.kernel.org/~dtor/eviocgbit-bug.html

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
plugins/input-raw.c