Commit 0b8e77f1 authored by Luca Tettamanti's avatar Luca Tettamanti Committed by Jean Delvare

hwmon: (asus_atk0110) Fix memory leak

The object returned by atk_gitm is dynamically allocated and must be
freed.
Signed-off-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
parent 1765a367
...@@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val) ...@@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
else else
err = -EIO; err = -EIO;
ACPI_FREE(ret);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment