Messages in this thread | | | Date | Thu, 12 Feb 2009 03:30:02 +0100 | From | Nick Piggin <> | Subject | Re: [patch] mm: vmap fix overflow |
| |
On Wed, Feb 11, 2009 at 06:20:50PM -0800, Andrew Morton wrote: > On Thu, 12 Feb 2009 02:39:31 +0100 Nick Piggin <npiggin@suse.de> wrote: > > > > Oh that's true, good catch. I guess that should be (addr + size - 1)? > > Because we care about the last byte that was actually allocated to us > > (inclusive, rather than exclusive). > > That would work. It wouldd give weird results for size==0, but probably > that's already checked for somewhere(?)
It's checked down in __get_vm_area_node.
| |