]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/vmalloc.c
mm: vmalloc allocator off by one
[linux-2.6-omap-h63xx.git] / mm / vmalloc.c
index ba6b0f5f7fac6dcce7a9e8a7c71f00e0e691d193..46aab4dbf618adbee6ac4fc272ffa9eb99b66a56 100644 (file)
@@ -362,7 +362,7 @@ retry:
                                goto found;
                }
 
-               while (addr + size >= first->va_start && addr + size <= vend) {
+               while (addr + size > first->va_start && addr + size <= vend) {
                        addr = ALIGN(first->va_end + PAGE_SIZE, align);
 
                        n = rb_next(&first->rb_node);