[ACPI] fix run-time error checking in acpi_pci_irq_disable()
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Sat, 3 Sep 2005 04:34:32 +0000 (00:34 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 3 Sep 2005 04:36:26 +0000 (00:36 -0400)
commit5f0110f2a716376f3b260703835f527ca8900946
treeeeb507e495f1710751afdc2da54eff6e243dcfe4
parent8713cbefafbb5a101ade541a4b0ffa108bf697cc
[ACPI] fix run-time error checking in acpi_pci_irq_disable()

The 'bus' field in pci_dev structure should be checked before calling
pci_read_config_byte() because pci_bus_read_config_byte() called by
pci_read_config_byte() refers to 'bus' field.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_irq.c