]> err.no Git - linux-2.6/commit
Input: gpio-keys - fix possible NULL pointer dereference
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Wed, 30 Jul 2008 14:33:43 +0000 (10:33 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Jul 2008 14:40:35 +0000 (10:40 -0400)
commit74dd4393445ba37b79041d92de6ff7e7b68a4aec
treec223fdc1d9c5cd1d8217a782d0d0ed7dccf99832
parent558a171d778293176bf70bc34e18a92faef5bfa1
Input: gpio-keys - fix possible NULL pointer dereference

bdata->button is used in gpio_check_button but never initialized.  Having a
device with debounce_interval != 0 without this patch resulted on an oops on
my machine.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c