Explorar o código

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>
Dan Carpenter %!s(int64=14) %!d(string=hai) anos
pai
achega
bac64d0f8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/input/touchscreen/bu21013_ts.c

+ 1 - 1
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;