Explorar o código

hwmon: (asus_atk0110) Fix memory leak

The object returned by atk_gitm is dynamically allocated and must be
freed.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
Luca Tettamanti %!s(int64=14) %!d(string=hai) anos
pai
achega
0b8e77f12c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/hwmon/asus_atk0110.c

+ 1 - 0
drivers/hwmon/asus_atk0110.c

@@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
 	else
 		err = -EIO;
 
+	ACPI_FREE(ret);
 	return err;
 }