diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-28 18:09:28 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-29 01:33:07 -0400 |
commit | bac64d0f8cfd45f1027b6e946785a56e8d694fba (patch) | |
tree | 4889685a59ce4e324058ecba6178648e34e39c34 /drivers/input | |
parent | b584efc9ea7575d3235cfd745e8a28201d2c37f6 (diff) |
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>
Diffstat (limited to 'drivers/input')
-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: | |||
514 | err_cs_disable: | 514 | err_cs_disable: |
515 | pdata->cs_dis(pdata->cs_pin); | 515 | pdata->cs_dis(pdata->cs_pin); |
516 | err_free_mem: | 516 | err_free_mem: |
517 | input_free_device(bu21013_data->in_dev); | 517 | input_free_device(in_dev); |
518 | kfree(bu21013_data); | 518 | kfree(bu21013_data); |
519 | 519 | ||
520 | return error; | 520 | return error; |