diff options
author | Nick Piggin <npiggin@suse.de> | 2008-11-19 15:36:32 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-19 18:49:58 -0800 |
commit | f011c2dae6cffc50ef67d9bd937b488ba5db8913 (patch) | |
tree | d956e003a564b3881810eebe0d17fad6b74bb97c /mm | |
parent | f481891fdc49d3d1b8a9674a1825d183069a805f (diff) | |
download | linux-f011c2dae6cffc50ef67d9bd937b488ba5db8913.tar.bz2 |
mm: vmalloc allocator off by one
Fix off by one bug in the KVA allocator that can leave gaps in the address
space.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index ba6b0f5f7fac..46aab4dbf618 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -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); |