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

Commit 38bdd729 authored by Libo Chen's avatar Libo Chen Committed by Matthew Garrett
Browse files

x86: asus-laptop: fix invalid point access



asus->name is null or point to const string,so it is not suitable to kfree it.

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 4c241b36
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1935,7 +1935,6 @@ static int asus_acpi_add(struct acpi_device *device)
fail_backlight:
	asus_platform_exit(asus);
fail_platform:
	kfree(asus->name);
	kfree(asus);

	return result;