From 88be1aba0723e533aca963bb528887a3189831c5 Mon Sep 17 00:00:00 2001 From: Brian Jackson Date: Thu, 8 Jan 2004 06:47:46 +0000 Subject: fix mremap patch --- sys-kernel/usermode-sources/files/usermode-sources.CAN-2003-0985.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-kernel/usermode-sources') diff --git a/sys-kernel/usermode-sources/files/usermode-sources.CAN-2003-0985.patch b/sys-kernel/usermode-sources/files/usermode-sources.CAN-2003-0985.patch index bacef69f02f8..dacf6ed810f9 100644 --- a/sys-kernel/usermode-sources/files/usermode-sources.CAN-2003-0985.patch +++ b/sys-kernel/usermode-sources/files/usermode-sources.CAN-2003-0985.patch @@ -5,7 +5,7 @@ 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 */ -- cgit v1.2.3-65-gdbad