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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:14 +0000 (12:25 -0800)
commit26021cf9139755640ddcd97bb286e5f5ee8efacf
tree9835d82e3b670675f448de6234c1134aefd3b612
parent8807a436dbe45b1401bf4c6d67a757f7bdc99171
Input: allocate absinfo data when setting ABS capability

commit 28a2a2e1aedbe2d8b2301e6e0e4e63f6e4177aca upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/input.c