Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29128
b: refs/heads/master
c: fdc136c
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones authored and Len Brown committed Mar 31, 2006
1 parent 1697237 commit 94be8b1
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: a1f9e65e2085e0a87f28a4d5a8ae43b32c087f24
refs/heads/master: fdc136ccd3332938e989439c025c363f8479f3e6
4 changes: 3 additions & 1 deletion trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,10 @@ acpi_thermal_write_trip_points(struct file *file,
memset(limit_string, 0, ACPI_THERMAL_MAX_LIMIT_STR_LEN);

active = kmalloc(ACPI_THERMAL_MAX_ACTIVE * sizeof(int), GFP_KERNEL);
if (!active)
if (!active) {
kfree(limit_string);
return_VALUE(-ENOMEM);
}

if (!tz || (count > ACPI_THERMAL_MAX_LIMIT_STR_LEN - 1)) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid argument\n"));
Expand Down

0 comments on commit 94be8b1

Please sign in to comment.