提交 38bdd729 编写于 作者: L Libo Chen 提交者: 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: NLibo Chen <libo.chen@huawei.com>
Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册