x86: asus-laptop: fix invalid point access
authorLibo Chen <clbchenlibo.chen@huawei.com>
Mon, 20 May 2013 02:30:24 +0000 (10:30 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 10 Jul 2013 19:42:45 +0000 (15:42 -0400)
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>
drivers/platform/x86/asus-laptop.c

index 0eea09c..8e268da 100644 (file)
@@ -1935,7 +1935,6 @@ fail_input:
 fail_backlight:
        asus_platform_exit(asus);
 fail_platform:
-       kfree(asus->name);
        kfree(asus);
 
        return result;