projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f9e65
)
[ACPI] fix possible acpi thermal leak in failure path
author
Dave Jones
<davej@redhat.com>
Thu, 9 Mar 2006 03:12:00 +0000
(22:12 -0500)
committer
Len Brown
<len.brown@intel.com>
Fri, 31 Mar 2006 06:02:39 +0000
(
01:02
-0500)
Coverity: #601
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/thermal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/thermal.c
b/drivers/acpi/thermal.c
index 19f3ea48475e369ec9ba1b39405e5d14da9a2e6f..d0b44ce2ec5a5a25034d21f754f9bbc5e2a358d6 100644
(file)
--- a/
drivers/acpi/thermal.c
+++ b/
drivers/acpi/thermal.c
@@
-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"));
This page took
0.0253 seconds
and
5
git commands to generate.