Skip to contentSkip to conversation

x86: asus-laptop: fix invalid point access

PATCH New Libo Chen 1 participant 1 message May 20, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Libo Chen

author
#1 lore raw

PATCH 2/3 x86: asus-laptop: fix invalid point access

asus->name is null or point to const string,so it is not suitable to kfree it.

---
 drivers/platform/x86/asus-laptop.c | 1 -
 1 file changed, 1 deletion(-)
drivers/platform/x86/asus-laptop.c +0 -1
index 0eea09c..8e268da 100644
@@ -1935,7 +1935,6 @@ fail_input:
 fail_backlight:
 	asus_platform_exit(asus);
 fail_platform:
-	kfree(asus->name);
 	kfree(asus);
 
 	return result;
Signature · 1 line
1.8.1.2