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>
This commit is contained in:
Dan Carpenter 2010-10-28 15:09:28 -07:00 committed by Dmitry Torokhov
parent b584efc9ea
commit bac64d0f8c

View File

@ -514,7 +514,7 @@ err_free_irq:
err_cs_disable: err_cs_disable:
pdata->cs_dis(pdata->cs_pin); pdata->cs_dis(pdata->cs_pin);
err_free_mem: err_free_mem:
input_free_device(bu21013_data->in_dev); input_free_device(in_dev);
kfree(bu21013_data); kfree(bu21013_data);
return error; return error;