]> git.hungrycats.org Git - linux/commitdiff
Fix silly mremap test.
authorLinus Torvalds <torvalds@home.osdl.org>
Wed, 7 Jan 2004 10:26:41 +0000 (02:26 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 7 Jan 2004 10:26:41 +0000 (02:26 -0800)
Get off the drugs, Linus.

mm/mremap.c

index ce523ef8555567e7734eefecf32761b8c412b7a0..e308e6a58639865aa888678ca818d8d8155aa58a 100644 (file)
@@ -316,7 +316,7 @@ unsigned long do_mremap(unsigned long addr,
        new_len = PAGE_ALIGN(new_len);
 
        /* Don't allow the degenerate cases */
-       if (!(old_len | new_len))
+       if (!old_len || !new_len)
                goto out;
 
        /* new_addr is only valid if MREMAP_FIXED is specified */