Input: lm8323 - fix error handling in lm8323_probe()
authorDan Carpenter <error27@gmail.com>
Mon, 28 Jun 2010 18:34:24 +0000 (11:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Jun 2010 18:35:15 +0000 (11:35 -0700)
commit1796b983cc4cbbed5e9e478b03591609a2c21987
tree2cbb7e583d38a76cbf0f036857350deb8c5216f6
parent28ed684fa3c0a75b59a00e209afef98aff7fa617
Input: lm8323 - fix error handling in lm8323_probe()

We reuse the "i" variable later on so if we goto fail3 or fail4
then "i" will be set to the wrong thing and cause a crash.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/lm8323.c