lkml.org 
[lkml]   [2004]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] PCI fixes for 2.6.9
Date
From
ChangeSet 1.1997.37.5, 2004/10/06 11:19:16-07:00, greg@kroah.com

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

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>


drivers/pci/search.c | 1 +
1 files changed, 1 insertion(+)


diff -Nru a/drivers/pci/search.c b/drivers/pci/search.c
--- a/drivers/pci/search.c 2004-10-19 15:27:32 -07:00
+++ b/drivers/pci/search.c 2004-10-19 15:27:32 -07:00
@@ -332,6 +332,7 @@
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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:1.443 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site