Whamcloud - gitweb
Add chaos13 patch from Andreas.
authorgord-fig <gord-fig>
Tue, 27 Aug 2002 21:19:47 +0000 (21:19 +0000)
committergord-fig <gord-fig>
Tue, 27 Aug 2002 21:19:47 +0000 (21:19 +0000)
lustre/patches/patch-2.4.18-chaos13 [new file with mode: 0644]

diff --git a/lustre/patches/patch-2.4.18-chaos13 b/lustre/patches/patch-2.4.18-chaos13
new file mode 100644 (file)
index 0000000..d193e4d
--- /dev/null
@@ -0,0 +1,12 @@
+--- linux-2.4.18-lustre13-3/drivers/qsnet1/qsw/kernel_linux.c  Wed Jun 26 15:40:06 2002
++++ linux-2.4.18-lustre13-4/drivers/qsnet1/qsw/kernel_linux.c  Fri Aug 23 08:42:57 2002
+@@ -225,7 +225,8 @@ kmem_to_phys(void *ptr)
+       uintptr_t phys, virt = (uintptr_t)ptr;
+       pte_t *pte;
+-      if ((((unsigned long) ptr) >= VMALLOC_START && ((unsigned long) ptr) < VMALLOC_END)) 
++      if (((((unsigned long) ptr) >= VMALLOC_START && ((unsigned long) ptr) < VMALLOC_END)) ||
++          ((((unsigned long) ptr) >= PKMAP_BASE && ((unsigned long) ptr) < (PKMAP_BASE + LAST_PKMAP * PAGE_SIZE))))
+       {
+               pte = find_pte_k(virt);
+               ASSERT(pte && !pte_none(*pte));