From 57b86b218159129c2c419019e3d6b7d9e764f109 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 29 Jun 2010 11:09:47 +0800 Subject: [PATCH] --- yaml --- r: 202454 b: refs/heads/master c: d8eca1105fe2039e102c6a8a915d0af937b1b593 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/platform/x86/asus-laptop.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4d83294ace00..946e708dec6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1492616a434dae1908d0da2d6ee6605ca5a77e6f +refs/heads/master: d8eca1105fe2039e102c6a8a915d0af937b1b593 diff --git a/trunk/drivers/platform/x86/asus-laptop.c b/trunk/drivers/platform/x86/asus-laptop.c index efe8f6388906..4af5709f8317 100644 --- a/trunk/drivers/platform/x86/asus-laptop.c +++ b/trunk/drivers/platform/x86/asus-laptop.c @@ -1397,8 +1397,10 @@ static int asus_laptop_get_info(struct asus_laptop *asus) } } asus->name = kstrdup(string, GFP_KERNEL); - if (!asus->name) + if (!asus->name) { + kfree(buffer.pointer); return -ENOMEM; + } if (*string) pr_notice(" %s model detected\n", string);