summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-05-20 06:30:24 +0400
committerMatthew Garrett <matthew.garrett@nebula.com>2013-07-10 23:42:45 +0400
commit38bdd729ca39e1924a31970e41b13b6ce6ec1755 (patch)
treee3dc979e0c1327be3d7fcc4e8416d2a7e2fc33ac /drivers/platform
parent4c241b364b5899e46924bfd4f9599c45f8e4a146 (diff)
downloadlinux-38bdd729ca39e1924a31970e41b13b6ce6ec1755.tar.xz
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>
Diffstat (limited to 'drivers/platform')
-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:
fail_backlight:
asus_platform_exit(asus);
fail_platform:
- kfree(asus->name);
kfree(asus);
return result;