Ubuntu Pastebin

Paste from alberto at Mon, 20 Feb 2017 14:34:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
diff --git a/common/inc/nv-mm.h b/common/inc/nv-mm.h
index e5cc56a..4910e83 100644
--- a/common/inc/nv-mm.h
+++ b/common/inc/nv-mm.h
@@ -139,7 +139,12 @@
     #if defined(NV_VM_FAULT_HAS_ADDRESS)
         return vmf->address;
     #else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
+/* For some reason this check fails on i386 */
         return (unsigned long)(uintptr_t)(vmf->virtual_address);
+#else
+        return (unsigned long)vmf->address;
+#endif
     #endif
     }
 #endif // NV_VM_FAULT_PRESENT
Download as text