mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +00:00
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 <sudip@vectorindia.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
d1f2a031ab
commit
0c6da0733b
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user