diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-28 15:09:28 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-28 22:33:07 -0700 |
commit | bac64d0f8cfd45f1027b6e946785a56e8d694fba (patch) | |
tree | 4889685a59ce4e324058ecba6178648e34e39c34 /drivers/input/touchscreen | |
parent | b584efc9ea7575d3235cfd745e8a28201d2c37f6 (diff) | |
download | kernel_samsung_smdk4412-bac64d0f8cfd45f1027b6e946785a56e8d694fba.tar.gz kernel_samsung_smdk4412-bac64d0f8cfd45f1027b6e946785a56e8d694fba.tar.bz2 kernel_samsung_smdk4412-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>
Diffstat (limited to 'drivers/input/touchscreen')
-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 ccde5860256..2ca9e5d6646 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; |