summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2004-01-08 06:47:46 +0000
committerBrian Jackson <iggy@gentoo.org>2004-01-08 06:47:46 +0000
commit88be1aba0723e533aca963bb528887a3189831c5 (patch)
tree054bdd6bcc14ea7d9d8433de61b124c1d2f52f86 /sys-kernel/hardened-sources
parentadd amd64 for repoman again (diff)
downloadhistorical-88be1aba0723e533aca963bb528887a3189831c5.tar.gz
historical-88be1aba0723e533aca963bb528887a3189831c5.tar.bz2
historical-88be1aba0723e533aca963bb528887a3189831c5.zip
fix mremap patch
Diffstat (limited to 'sys-kernel/hardened-sources')
-rw-r--r--sys-kernel/hardened-sources/files/mremap-CAN-2003-0985.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-kernel/hardened-sources/files/mremap-CAN-2003-0985.patch b/sys-kernel/hardened-sources/files/mremap-CAN-2003-0985.patch
index bacef69f02f8..dacf6ed810f9 100644
--- a/sys-kernel/hardened-sources/files/mremap-CAN-2003-0985.patch
+++ b/sys-kernel/hardened-sources/files/mremap-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 */