From: Kenji Kaneshige Date: Thu, 8 May 2008 05:37:25 +0000 (+0900) Subject: PCI ACPI: fix uninitialized variable in __pci_osc_support_set X-Git-Tag: v2.6.26-rc3~70^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21e2b0a5efb3a01de58e7cb630f2eb70894da352;p=pandora-kernel.git PCI ACPI: fix uninitialized variable in __pci_osc_support_set Fix uninitialized variable in __pci_osc_support_set(). If the ACPI namespace doesn't have any device object corresponding to the specified hid, 'retval' in __pci_osc_support_set() is not changed by the acpi_query_osc() callback. Since 'retval' is not initizlized in the current implementation, the contents of 'retval' is undefined in this case. This causes a mis-handling of ctrlset_buf[OSC_SUPPORT_TYPE] and will cause an unexpected result in the subsequent pci_osc_control_set() call as a result. Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed