]> err.no Git - linux-2.6/blobdiff - mm/vmalloc.c
Prevent IDE boot ops on NUMA system
[linux-2.6] / mm / vmalloc.c
index 4efc41a6e2abefae709cfe0f8d59bcd0844c8dfa..950c0be9ca8154d7b119019e50be5dc6838faa5b 100644 (file)
@@ -254,6 +254,10 @@ static struct vm_struct *__get_vm_area_node(unsigned long size, unsigned long fl
                if (addr > end - size)
                        goto out;
        }
+       if ((size + addr) < addr)
+               goto out;
+       if (addr > end - size)
+               goto out;
 
 found:
        area->next = *p;
@@ -816,7 +820,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
 }
 
 
-static int f(pte_t *pte, struct page *pmd_page, unsigned long addr, void *data)
+static int f(pte_t *pte, pgtable_t table, unsigned long addr, void *data)
 {
        /* apply_to_page_range() does all the hard work. */
        return 0;