]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/PCI: handle multiple _OSC
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 12 May 2008 13:55:45 +0000 (22:55 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 13 May 2008 16:51:54 +0000 (09:51 -0700)
commit6cb37f6aa6f73250bd8ff8aade268ea26ebcd342
tree256235d6c54d8701a00811235271c14ddb232ba8
parentf58c67038de465803192feefa9d2a1b8092f019e
ACPI/PCI: handle multiple _OSC

The pci_osc_control_set() 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(). Here is a patch
to fix this problem in pci_osc_control_set.

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