Skip to content

Commit

Permalink
Input: atmel_tsadcc - correct call to input_free_device
Browse files Browse the repository at this point in the history
This error handling code can be reached before ts_dev->input is
initialized, so it is safer to always use the original name,
input_dev.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Julia Lawall authored and Dmitry Torokhov committed May 15, 2011
1 parent 36682b8 commit 215ef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/atmel_tsadcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev)
err_release_mem:
release_mem_region(res->start, resource_size(res));
err_free_dev:
input_free_device(ts_dev->input);
input_free_device(input_dev);
err_free_mem:
kfree(ts_dev);
return err;
Expand Down

0 comments on commit 215ef98

Please sign in to comment.