lkml.org 
[lkml]   [2009]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectOops in 2.6.27.39 with latest DTrace linux port
From
Hi,

http://lkml.org/lkml/2009/12/22/219

Attaching the patch for the above:-

--- driver/dtrace_linux.c.orig  2009-12-22 20:15:10.116371000 +0000
+++ driver/dtrace_linux.c       2009-12-22 20:17:03.248172000 +0000
@@ -1450,7 +1450,18 @@
 //             printk("yy: pmd=%lx\n", *pmd);
                return 0;
        }
-       pte = pte_offset_kernel(pmd, addr);
+
+       if (pmd_large(*pmd)) {
+                pte = (pte_t *)pmd;
+        }
+        else {
+
+                pte = pte_offset_kernel(pmd, addr);
+        }
+
+        if (pte_none(*pte))
+                return 0;
+
        if (dump_tree) {
                printk("yy -- begin\n");
                print_pte((pte_t *) pgd, 0);



- Soumendu sekhar satapathy
\
 
 \ /
  Last update: 2009-12-22 21:29    [W:0.029 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site