From: Sudip Mukherjee Date: Tue, 17 Nov 2015 17:33:58 +0000 (-0800) Subject: Input: parkbd - clear unused function pointers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c6da0733bff3bc7aaa1dcd63fefdbbca5a7a5f8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: parkbd - clear unused function pointers parkbd_parport_cb is a local uninitialized structure and the member function pointers will be pointing to arbitrary locations unless they are cleared. Fixes: 33ca8ab97cbb ("Input: parkbd - use parallel port device model") Signed-off-by: Sudip Mukherjee Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/serio/parkbd.c b/drivers/input/serio/parkbd.c index 92c31b8f8fb4..1edfac78d4ac 100644 --- a/drivers/input/serio/parkbd.c +++ b/drivers/input/serio/parkbd.c @@ -145,6 +145,7 @@ static int parkbd_getport(struct parport *pp) { struct pardev_cb parkbd_parport_cb; + memset(&parkbd_parport_cb, 0, sizeof(parkbd_parport_cb)); parkbd_parport_cb.irq_func = parkbd_interrupt; parkbd_parport_cb.flags = PARPORT_FLAG_EXCL;