From: Libo Chen Date: Mon, 20 May 2013 02:30:24 +0000 (+0800) Subject: x86: asus-laptop: fix invalid point access X-Git-Tag: firefly_0821_release~176^2~5690^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38bdd729ca39e1924a31970e41b13b6ce6ec1755;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Matthew Garrett --- 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;