]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/PCI: another multiple _OSC memory leak fix
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tue, 13 May 2008 07:48:50 +0000 (16:48 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 13 May 2008 16:51:54 +0000 (09:51 -0700)
commit5517eb42ff00055861a82049b9673357d3588665
tree8dc0fe170bde8997fe41a27f5b9115e4e31bcc64
parente220f2a00219ecfacb05dd7730e7ed9dd97c6b67
ACPI/PCI: another multiple _OSC memory leak fix

The acpi_query_osc() function can be called for the ACPI object that
doesn't have _OSC method. In this case, acpi_get_osc_data() would
allocate a useless memory region. To avoid this, we need to check the
existence of _OSC before calling acpi_get_osc_data() in acpi_query_osc().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-acpi.c