* [PATCH 2/3] x86: asus-laptop: fix invalid point access
[not found] <1368889004-5520-3-git-send-email-libo.chen@huawei.com>
@ 2013-05-20 2:30 ` Libo Chen
0 siblings, 0 replies; only message in thread
From: Libo Chen @ 2013-05-20 2:30 UTC (permalink / raw)
To: matthew.garrett; +Cc: platform-driver-x86, LKML, Li Zefan
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>
---
drivers/platform/x86/asus-laptop.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 0eea09c..8e268da 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;
--
1.8.1.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-20 2:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1368889004-5520-3-git-send-email-libo.chen@huawei.com>
2013-05-20 2:30 ` [PATCH 2/3] x86: asus-laptop: fix invalid point access Libo Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox