Skip to content

Commit

Permalink
Input: bu21013_ts - fix null dereference in error handling
Browse files Browse the repository at this point in the history
bu21013_data could be NULL so better not reference it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dan Carpenter authored and Dmitry Torokhov committed Oct 29, 2010
1 parent b584efc commit bac64d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/bu21013_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bac64d0

Please sign in to comment.