diff options
author | Libo Chen <clbchenlibo.chen@huawei.com> | 2013-05-20 10:30:24 +0800 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-07-10 15:42:45 -0400 |
commit | 38bdd729ca39e1924a31970e41b13b6ce6ec1755 (patch) | |
tree | e3dc979e0c1327be3d7fcc4e8416d2a7e2fc33ac /drivers/platform | |
parent | 4c241b364b5899e46924bfd4f9599c45f8e4a146 (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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 0eea09c1c13..8e268da6fdb 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; |