Kenji Kaneshige 21e2b0a5ef 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 <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-05-13 09:51:53 -07:00
..
2008-04-20 21:47:07 -07:00
2008-04-20 21:47:02 -07:00
2008-04-24 23:15:43 +02:00
2008-04-20 21:47:06 -07:00
2008-04-20 21:47:13 -07:00
2008-04-20 21:47:07 -07:00
2008-04-20 21:47:07 -07:00
2008-04-20 21:47:03 -07:00
2008-04-20 21:46:54 -07:00
2008-04-22 18:16:30 -07:00