Commit bac64d0f authored by Dan Carpenter's avatar Dan Carpenter Committed by Dmitry Torokhov

Input: bu21013_ts - fix null dereference in error handling

bu21013_data could be NULL so better not reference it.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment