|
|
old_len = PAGE_ALIGN(old_len); | old_len = PAGE_ALIGN(old_len); |
new_len = PAGE_ALIGN(new_len); | new_len = PAGE_ALIGN(new_len); |
| |
|
/* Don't allow the degenerate cases */ |
|
if (!(old_len | new_len)) |
|
goto out; |
|
|
/* new_addr is only valid if MREMAP_FIXED is specified */ | /* new_addr is only valid if MREMAP_FIXED is specified */ |
if (flags & MREMAP_FIXED) { | if (flags & MREMAP_FIXED) { |
if (new_addr & ~PAGE_MASK) | if (new_addr & ~PAGE_MASK) |