Input: allocate absinfo data when setting ABS capability
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Dec 2013 01:44:29 +0000 (17:44 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 31 Dec 2013 18:53:19 +0000 (10:53 -0800)
commit28a2a2e1aedbe2d8b2301e6e0e4e63f6e4177aca
tree7d1a45c313cecc0c9cb72ad7aae24271fde9d6ba
parent2a4d81547b88b4ff566d4b4f9c0e36285ed07634
Input: allocate absinfo data when setting ABS capability

We need to make sure we allocate absinfo data when we are setting one of
EV_ABS/ABS_XXX capabilities, otherwise we may bomb when we try to emit this
event.

Rested-by: Paul Cercueil <pcercuei@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c