Input: atmel_mxt_ts - fix double free of input device
authorStephen Warren <swarren@wwwdotorg.org>
Wed, 10 Sep 2014 17:01:10 +0000 (10:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Sep 2014 17:27:31 +0000 (10:27 -0700)
commit58e4aeee39917c75da8e5dca0f1c42be8dc29f9e
tree1fa7d72e71f1abdb0cc563212ffe6767bf9dbdc5
parent5715fc764f7753d464dbe094b5ef9cffa6e479a4
Input: atmel_mxt_ts - fix double free of input device

[Nick Dyer: reworked to move free of input device into separate function
and only call in paths that require it.]
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c