Explorar o código

Input: atmel_tsadcc - correct call to input_free_device

This error handling code can be reached before ts_dev->input is
initialized, so it is safer to always use the original name,
input_dev.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Julia Lawall %!s(int64=14) %!d(string=hai) anos
pai
achega
215ef98677
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/input/touchscreen/atmel_tsadcc.c

+ 1 - 1
drivers/input/touchscreen/atmel_tsadcc.c

@@ -317,7 +317,7 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev)
 err_release_mem:
 	release_mem_region(res->start, resource_size(res));
 err_free_dev:
-	input_free_device(ts_dev->input);
+	input_free_device(input_dev);
 err_free_mem:
 	kfree(ts_dev);
 	return err;