linux-stable-rt/drivers/pci
Ard van Breemen 6ae4adf503 [PATCH] PCI: prevent down_read when pci_devices is empty
The pci_find_subsys gets called very early by obsolete ide setup parameters.
This is a bogus call since pci is not initialized yet, so the list is empty.
But in the mean time, interrupts get enabled by down_read.  This can result in
a kernel panic when the irq controller gets initialized.

This patch checks if the device list is empty before taking the semaphore, and
hence will not enable irq's.  Furthermore it will inform that it is called
while pci_devices is empty as a reminder that the ide code needs to be fixed.

The pci_get_subsys can get called in the same manner, and as such is patched
in the same manner.

[akpm@osdl.org: cleanups]
Signed-off-by: Ard van Breemen <ard@telegraafnet.nl>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2007-01-05 23:55:21 -08:00
..
hotplug Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-12-22 18:46:56 -08:00
pcie PCI: pcieport-driver: remove invalid warning message 2006-12-20 10:54:42 -08:00
.gitignore
Kconfig
Makefile
access.c
bus.c
hotplug.c
htirq.c PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c 2006-12-20 10:54:42 -08:00
msi.c
msi.h
pci-acpi.c
pci-driver.c PCI: Fix multiple problems with VIA hardware 2006-12-20 10:54:43 -08:00
pci-sysfs.c
pci.c PCI: Add pci_find_ht_capability() for finding Hypertransport capabilities 2006-12-20 10:54:42 -08:00
pci.h
probe.c [PATCH] pci/probe: fix macro that confuses kernel-doc 2006-12-30 10:55:55 -08:00
proc.c
quirks.c PCI: ATI sb600 sata quirk 2006-12-20 10:54:44 -08:00
remove.c
rom.c
search.c [PATCH] PCI: prevent down_read when pci_devices is empty 2007-01-05 23:55:21 -08:00
setup-bus.c [PATCH] increase CARDBUS_MEM_SIZE 2006-12-22 08:55:51 -08:00
setup-irq.c
setup-res.c PCI legacy resource fix 2006-12-20 10:54:43 -08:00
syscall.c