forked from Minki/linux
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:
parent
b584efc9ea
commit
bac64d0f8c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user