Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -674,6 +674,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
	else
		err = -EIO;

	ACPI_FREE(ret);
	return err;
}