Messages in this thread Patches in this message | | | Date | Tue, 09 Nov 1999 01:26:41 -0400 | From | "Garst R. Reese" <> | Subject | pre 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/
| |