projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f8f3c
)
ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path
author
Jesper Juhl
<jesper.juhl@gmail.com>
Wed, 18 Jul 2007 22:48:03 +0000
(
00:48
+0200)
committer
Len Brown
<len.brown@intel.com>
Thu, 19 Jul 2007 00:46:20 +0000
(20:46 -0400)
acpi_ev_pci_config_region_setup() leaks pci_id
in the error case of "if (!pci_device_node)"
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/events/evrgnini.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/events/evrgnini.c
b/drivers/acpi/events/evrgnini.c
index 400d90fca966ca9c08aa2c68233d56f47790bc00..23ee7bc4a705459579f5122c31ea368bb43235d8 100644
(file)
--- a/
drivers/acpi/events/evrgnini.c
+++ b/
drivers/acpi/events/evrgnini.c
@@
-284,6
+284,7
@@
acpi_ev_pci_config_region_setup(acpi_handle handle,
}
if (!pci_device_node) {
+ ACPI_FREE(pci_id);
return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
}