projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1765a36
)
hwmon: (asus_atk0110) Fix memory leak
author
Luca Tettamanti
<kronos.it@gmail.com>
Sun, 17 Jul 2011 16:39:18 +0000
(18:39 +0200)
committer
Jean Delvare
<khali@endymion.delvare>
Sun, 17 Jul 2011 16:39:18 +0000
(18:39 +0200)
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
drivers/hwmon/asus_atk0110.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/asus_atk0110.c
b/drivers/hwmon/asus_atk0110.c
index
dcb78a7
..
00e9851
100644
(file)
--- a/
drivers/hwmon/asus_atk0110.c
+++ b/
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;
}