aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/joydev.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-31 15:09:08 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-01 10:33:21 -0800
commit6ecfe51b4082e7cff12609f97daa052ae04b61fd (patch)
tree46c4182f9166fc447c462eb5bdb52a3cb4d4837a /drivers/input/joydev.c
parentInput: mousedev - stop offering PS/2 to userspace by default (diff)
downloadlinux-dev-6ecfe51b4082e7cff12609f97daa052ae04b61fd.tar.xz
linux-dev-6ecfe51b4082e7cff12609f97daa052ae04b61fd.zip
Input: refuse to register absolute devices without absinfo
If device is supposed to send absolute events (i.e. EV_ABS bit is set in dev->evbit) but dev->absinfo is not allocated, then the driver has done something wrong, and we should not register such device. Otherwise we'll crash later, when driver tries to send absolute event. Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/joydev.c')
0 files changed, 0 insertions, 0 deletions