diff mbox

[Bugme-new,Bug,14564] New: capture-example sleeping function called from invalid context at arch/x86/mm/fault.c

Message ID 4B296D84.7090603@toaster.net (mailing list archive)
State Not Applicable
Headers show

Commit Message

Sean Dec. 16, 2009, 11:30 p.m. UTC
None
diff mbox

Patch

--- ohci-mem.c.orig    2009-12-16 22:57:49.000000000 +0000
+++ ohci-mem.c    2009-12-16 22:49:37.000000000 +0000
@@ -103,8 +103,13 @@ 
 {
     struct td    **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)];
 
-    while (*prev && *prev != td)
+    while (*prev && *prev != td) {
+        if ((unsigned long) *prev == 0xa7a7a7a7) {
+            ohci_info(hc, "poisoned hash at %p\n", prev);
+            return;
+        }
         prev = &(*prev)->td_hash;
+    }
     if (*prev)
         *prev = td->td_hash;
     else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0)