Commit 03eec28b authored by Linus Torvalds's avatar Linus Torvalds

Fix silly mremap test.

Get off the drugs, Linus.
parent a94273a1
...@@ -316,7 +316,7 @@ unsigned long do_mremap(unsigned long addr, ...@@ -316,7 +316,7 @@ unsigned long do_mremap(unsigned long addr,
new_len = PAGE_ALIGN(new_len); new_len = PAGE_ALIGN(new_len);
/* Don't allow the degenerate cases */ /* Don't allow the degenerate cases */
if (!(old_len | new_len)) if (!old_len || !new_len)
goto out; goto out;
/* new_addr is only valid if MREMAP_FIXED is specified */ /* new_addr is only valid if MREMAP_FIXED is specified */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment