lkml.org 
[lkml]   [1999]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subjectpre 2.3.27-2 buggy patch.
Count the )'s
diff -u --recursive --new-file v2.3.26/linux/mm/vmalloc.c
linux/mm/vmalloc.c
--- v2.3.26/linux/mm/vmalloc.c Wed Oct 27 16:34:12 1999
+++ linux/mm/vmalloc.c Mon Nov 8 18:01:12 1999
@@ -204,7 +204,7 @@
struct vm_struct *area;

size = PAGE_ALIGN(size);
- if (!size || size > (max_mapnr << PAGE_SHIFT)) {
+ if (!size || (size >> PAGE_SHIFT) > max_mapnr)) {
BUG();
return NULL;
}
This might work better :)
diff -u --recursive --new-file v2.3.26/linux/mm/vmalloc.c
linux/mm/vmalloc.c
--- v2.3.26/linux/mm/vmalloc.c Wed Oct 27 16:34:12 1999
+++ linux/mm/vmalloc.c Mon Nov 8 18:01:12 1999
@@ -204,7 +204,7 @@
struct vm_struct *area;

size = PAGE_ALIGN(size);
- if (!size || size > (max_mapnr << PAGE_SHIFT)) {
+ if (!size || (size >> PAGE_SHIFT) > max_mapnr) {
BUG();
return NULL;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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