提交 215ef986 编写于 作者: J Julia Lawall 提交者: Dmitry Torokhov

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: NJulia Lawall <julia@diku.dk>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 36682b81
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册