Skip to content

Commit

Permalink
Input: tsc2007 - do not leave dangling clientdata pointer
Browse files Browse the repository at this point in the history
Do not leave dangling client data pointers when unbinding device from the
driver.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Wolfram Sang authored and Dmitry Torokhov committed Apr 14, 2010
1 parent e078557 commit d6372b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/input/touchscreen/tsc2007.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ static int __devexit tsc2007_remove(struct i2c_client *client)
struct tsc2007 *ts = i2c_get_clientdata(client);
struct tsc2007_platform_data *pdata = client->dev.platform_data;

i2c_set_clientdata(client, NULL);

tsc2007_free_irq(ts);

if (pdata->exit_platform_hw)
Expand Down

0 comments on commit d6372b7

Please sign in to comment.