From: Dan Carpenter Date: Thu, 28 Oct 2010 22:09:28 +0000 (-0700) Subject: Input: bu21013_ts - fix null dereference in error handling X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bac64d0f8cfd45f1027b6e946785a56e8d694fba;p=openwrt%2Fstaging%2Fblogic.git Input: bu21013_ts - fix null dereference in error handling bu21013_data could be NULL so better not reference it. Signed-off-by: Dan Carpenter Signed-off-by: Dmitry Torokhov --- 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;