projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d0abec
)
ACPI / PCI: Fix memory leak in acpi_pci_irq_enable()
author
Tomasz Nowicki
<
[email protected]
>
Mon, 10 Feb 2014 13:00:11 +0000
(14:00 +0100)
committer
Rafael J. Wysocki
<
[email protected]
>
Tue, 18 Feb 2014 14:47:23 +0000
(15:47 +0100)
acpi_pci_link_allocate_irq() can return negative gsi even if
entry != NULL. For that case we have a memory leak, so free
entry before returning from acpi_pci_irq_enable() for gsi < 0.
Signed-off-by: Tomasz Nowicki <
[email protected]
>
Cc: All applicable <
[email protected]
>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/acpi/pci_irq.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/pci_irq.c
b/drivers/acpi/pci_irq.c
index 52d45ea2bc4f63efcfb7e8912b087b1a568d49cc..361b40c10c3f522e28e2b334dd5f8976109bc772 100644
(file)
--- a/
drivers/acpi/pci_irq.c
+++ b/
drivers/acpi/pci_irq.c
@@
-430,6
+430,7
@@
int acpi_pci_irq_enable(struct pci_dev *dev)
pin_name(pin));
}
+ kfree(entry);
return 0;
}