diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-10-06 03:22:47 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-10-06 03:34:56 +0300 |
commit | dd23bf1044e89f46e2d1af9725c0b24864309082 (patch) | |
tree | 8ff881f7a83beab6e05dd9aff2e9010ef9bd503e /drivers/input/joystick/stinger.c | |
parent | 92deea1350f9fa97a841d45cd1f8228d5e8aa667 (diff) | |
download | linux-dd23bf1044e89f46e2d1af9725c0b24864309082.tar.xz |
Input: db9 - store object at correct index
The variable i is used to check the port to attach to and we are
supposed to save the reference of struct db9 in the location given by
db9_base[i]. But after finding out the index, i is getting modified again
so we saved in a wrong index.
While at it mark db9_base[i] as NULL after it is freed.
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>
Diffstat (limited to 'drivers/input/joystick/stinger.c')
0 files changed, 0 insertions, 0 deletions