diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-29 00:09:28 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-29 07:33:07 +0200 |
commit | bac64d0f8cfd45f1027b6e946785a56e8d694fba (patch) | |
tree | 4889685a59ce4e324058ecba6178648e34e39c34 | |
parent | Input: ad7879 - prevent invalid finger data reports (diff) | |
download | linux-bac64d0f8cfd45f1027b6e946785a56e8d694fba.tar.xz linux-bac64d0f8cfd45f1027b6e946785a56e8d694fba.zip |
Input: bu21013_ts - fix null dereference in error handling
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>
-rw-r--r-- | drivers/input/touchscreen/bu21013_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c index ccde58602563..2ca9e5d66460 100644 --- a/drivers/input/touchscreen/bu21013_ts.c +++ b/drivers/input/touchscreen/bu21013_ts.c @@ -514,7 +514,7 @@ err_free_irq: 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; |