diff options
author | Luca Tettamanti <kronos.it@gmail.com> | 2011-07-17 12:39:18 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2011-07-17 12:39:18 -0400 |
commit | 0b8e77f12cb6bfe2e5a67f2cdc8c7af23abc4ccf (patch) | |
tree | 5df41a3dfae9282cf723bd0752c6fd2c9fa6820f | |
parent | 1765a367a3b5d5e9692949b0c5ec933eff2c0701 (diff) |
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
-rw-r--r-- | drivers/hwmon/asus_atk0110.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index dcb78a7a8047..00e98517f94c 100644 --- 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) | |||
674 | else | 674 | else |
675 | err = -EIO; | 675 | err = -EIO; |
676 | 676 | ||
677 | ACPI_FREE(ret); | ||
677 | return err; | 678 | return err; |
678 | } | 679 | } |
679 | 680 | ||