diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-11-17 09:33:58 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-11-17 10:00:16 -0800 |
commit | 0c6da0733bff3bc7aaa1dcd63fefdbbca5a7a5f8 (patch) | |
tree | fb18baf1e2ace5ce36e29f738145447706b57c73 /drivers/input/serio | |
parent | d1f2a031ab902020393dc1dc2d721ea95578b5a8 (diff) | |
download | linux-stable-0c6da0733bff3bc7aaa1dcd63fefdbbca5a7a5f8.tar.gz linux-stable-0c6da0733bff3bc7aaa1dcd63fefdbbca5a7a5f8.tar.bz2 linux-stable-0c6da0733bff3bc7aaa1dcd63fefdbbca5a7a5f8.zip |
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>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/parkbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |