Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: walkera0701 - clear unused function pointers

walkera0701_parport_cb is a local uninitialized structure and the member
function pointers will be pointing to arbitrary locations unless they
are cleared.

Fixes: 221bcb24c653 ("Input: walkera0701 - use parallel port device model")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Sudip Mukherjee and committed by
Dmitry Torokhov
d1f2a031 3855e9e4

+1
+1
drivers/input/joystick/walkera0701.c
··· 218 218 219 219 w->parport = pp; 220 220 221 + memset(&walkera0701_parport_cb, 0, sizeof(walkera0701_parport_cb)); 221 222 walkera0701_parport_cb.flags = PARPORT_FLAG_EXCL; 222 223 walkera0701_parport_cb.irq_func = walkera0701_irq_handler; 223 224 walkera0701_parport_cb.private = w;