提交 bac64d0f 编写于 作者: D Dan Carpenter 提交者: Dmitry Torokhov

Input: bu21013_ts - fix null dereference in error handling

bu21013_data could be NULL so better not reference it.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 b584efc9
......@@ -514,7 +514,7 @@ static int __devinit bu21013_probe(struct i2c_client *client,
err_cs_disable:
pdata->cs_dis(pdata->cs_pin);
err_free_mem:
input_free_device(bu21013_data->in_dev);
input_free_device(in_dev);
kfree(bu21013_data);
return error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册