diff options
author | Libo Chen <clbchenlibo.chen@huawei.com> | 2013-05-20 04:30:24 +0200 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-07-10 21:42:45 +0200 |
commit | 38bdd729ca39e1924a31970e41b13b6ce6ec1755 (patch) | |
tree | e3dc979e0c1327be3d7fcc4e8416d2a7e2fc33ac /drivers | |
parent | x86: msi-laptop: fix memleak (diff) | |
download | linux-38bdd729ca39e1924a31970e41b13b6ce6ec1755.tar.xz linux-38bdd729ca39e1924a31970e41b13b6ce6ec1755.zip |
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')
-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 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; |