Commit bbe92ead authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: make pci_find_class() warn if in interrupt like all other find/get functions do.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent e9291977
......@@ -332,6 +332,7 @@ pci_find_class(unsigned int class, const struct pci_dev *from)
struct list_head *n;
struct pci_dev *dev;
WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock);
n = from ? from->global_list.next : pci_devices.next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment