aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-05-19 22:30:24 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2013-07-10 15:42:45 -0400
commit38bdd729ca39e1924a31970e41b13b6ce6ec1755 (patch)
treee3dc979e0c1327be3d7fcc4e8416d2a7e2fc33ac
parent4c241b364b5899e46924bfd4f9599c45f8e4a146 (diff)
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>
-rw-r--r--drivers/platform/x86/asus-laptop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 0eea09c1c134..8e268da6fdbd 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -1935,7 +1935,6 @@ fail_input:
1935fail_backlight: 1935fail_backlight:
1936 asus_platform_exit(asus); 1936 asus_platform_exit(asus);
1937fail_platform: 1937fail_platform:
1938 kfree(asus->name);
1939 kfree(asus); 1938 kfree(asus);
1940 1939
1941 return result; 1940 return result;