mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 16:40:22 +00:00
Input: db9 - clear unused function pointers
db9_parport_cb is a local uninitialized structure and the member function pointers will be pointing to arbitrary locations unless they are cleared. Fixes: 2260c419b52b ("Input: db9 - 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
bbdb5c22e1
commit
42beaccb2a
@ -592,6 +592,7 @@ static void db9_attach(struct parport *pp)
|
||||
return;
|
||||
}
|
||||
|
||||
memset(&db9_parport_cb, 0, sizeof(db9_parport_cb));
|
||||
db9_parport_cb.flags = PARPORT_FLAG_EXCL;
|
||||
|
||||
pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user