diff mbox

[v2] touchscreen/bu21013_ts: null dereference in error handling

Message ID 20101027202605.GH6062@bicker (mailing list archive)
State Accepted
Commit bac64d0f8cfd45f1027b6e946785a56e8d694fba
Headers show

Commit Message

Dan Carpenter Oct. 27, 2010, 8:26 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c
index ccde586..2ca9e5d 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;