summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-28 15:09:28 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-10-28 22:33:07 -0700
commitbac64d0f8cfd45f1027b6e946785a56e8d694fba (patch)
tree4889685a59ce4e324058ecba6178648e34e39c34
parentb584efc9ea7575d3235cfd745e8a28201d2c37f6 (diff)
downloadblackbird-obmc-linux-bac64d0f8cfd45f1027b6e946785a56e8d694fba.tar.gz
blackbird-obmc-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.c2
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;
OpenPOWER on IntegriCloud