Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202454
b: refs/heads/master
c: d8eca11
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Matthew Garrett committed Aug 3, 2010
1 parent cd985d3 commit 57b86b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1492616a434dae1908d0da2d6ee6605ca5a77e6f
refs/heads/master: d8eca1105fe2039e102c6a8a915d0af937b1b593
4 changes: 3 additions & 1 deletion trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57b86b2

Please sign in to comment.