projects
/
wrapfs-2.6.35.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57090d5
)
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
Andi Kleen
<ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:01 +0000
(13:55 -0700)
[ upstream commit
0b8e77f12cb6bfe2e5a67f2cdc8c7af23abc4ccf
]
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
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/hwmon/asus_atk0110.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/asus_atk0110.c
b/drivers/hwmon/asus_atk0110.c
index 653db1bda9348ebaa62d8f17f93c46a4b8cdadda..df17705b5938b6b8bc2c4fdf51692ed797aecb9f 100644
(file)
--- a/
drivers/hwmon/asus_atk0110.c
+++ b/
drivers/hwmon/asus_atk0110.c
@@
-655,6
+655,7
@@
static int atk_debugfs_gitm_get(void *p, u64 *val)
else
err = -EIO;
+ ACPI_FREE(ret);
return err;
}