]> git.baikalelectronics.ru Git - kernel.git/commit
Input: turbografx - store object in correct index
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 6 Oct 2015 00:23:08 +0000 (17:23 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Oct 2015 00:34:57 +0000 (17:34 -0700)
commit16b2afa1c510d124cbf4d53374cbe4393233b260
tree2faaee571d3826d9a4e9bf8e51b0ba709981b4a8
parentbac8d4734d7ffa52a700fd09309aa52e9818d77e
Input: turbografx - store object in correct index

The variable i is used to check the port to attach to and we are
supposed to save the reference of struct tgfx in the location given by
tgfx_base[i]. But after finding out the index, i is getting modified
again so we saved in a wrong index.

Fixes: 0063d7ace8a2 ("Input: turbografx - use parallel port device model")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/turbografx.c