Lines 270-275
Link Here
|
270 |
old_len = PAGE_ALIGN(old_len); |
270 |
old_len = PAGE_ALIGN(old_len); |
271 |
new_len = PAGE_ALIGN(new_len); |
271 |
new_len = PAGE_ALIGN(new_len); |
272 |
|
272 |
|
|
|
273 |
/* Don't allow the degenerate cases */ |
274 |
if (!(old_len | new_len)) |
275 |
goto out; |
276 |
|
273 |
/* new_addr is only valid if MREMAP_FIXED is specified */ |
277 |
/* new_addr is only valid if MREMAP_FIXED is specified */ |
274 |
if (flags & MREMAP_FIXED) { |
278 |
if (flags & MREMAP_FIXED) { |
275 |
if (new_addr & ~PAGE_MASK) |
279 |
if (new_addr & ~PAGE_MASK) |