From 03eec28be7a2088aa45e55105b142e9f4c7813d1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 7 Jan 2004 02:26:41 -0800 Subject: [PATCH] Fix silly mremap test. Get off the drugs, Linus. --- mm/mremap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mremap.c b/mm/mremap.c index ce523ef855556..e308e6a586398 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -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 */ -- 2.53.0