mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-06 23:39:40 +00:00
Input: atmel_tsadcc - correct call to input_free_device
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>
This commit is contained in:
parent
36682b81de
commit
215ef98677
@ -317,7 +317,7 @@ err_unmap_regs:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user