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

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
......@@ -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;
......
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