From: Kenji Kaneshige Date: Tue, 13 May 2008 07:48:50 +0000 (+0900) Subject: ACPI/PCI: another multiple _OSC memory leak fix X-Git-Tag: v2.6.26-rc3~70^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4e5fadd2a6fc0da465dcde761877d9a87313b33;p=pandora-kernel.git 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 Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed