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: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:
Libo Chen 2013-05-20 10:30:24 +08:00 committed by Matthew Garrett
parent 4c241b364b
commit 38bdd729ca
1 changed files with 0 additions and 1 deletions

View File

@ -1935,7 +1935,6 @@ fail_input:
fail_backlight:
asus_platform_exit(asus);
fail_platform:
kfree(asus->name);
kfree(asus);
return result;