summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2004-04-16 08:35:03 +0000
committerBrian Harring <ferringb@gentoo.org>2004-04-16 08:35:03 +0000
commitace98e84b3b41142c5262425d111e975fa41048c (patch)
tree90cb44a6e6152f73d5668908e58fbefa54740667
parentNow bump to stable AFTER testing! (Manifest recommit) (diff)
downloadgentoo-2-ace98e84b3b41142c5262425d111e975fa41048c.tar.gz
gentoo-2-ace98e84b3b41142c5262425d111e975fa41048c.tar.bz2
gentoo-2-ace98e84b3b41142c5262425d111e975fa41048c.zip
Patch was missed on 2.6.5-r1 commit. Grabbed it from mips.
-rw-r--r--sys-kernel/gentoo-dev-sources/files/gentoo-dev-sources-2.6.5.CAN-2004-0109.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-dev-sources/files/gentoo-dev-sources-2.6.5.CAN-2004-0109.patch b/sys-kernel/gentoo-dev-sources/files/gentoo-dev-sources-2.6.5.CAN-2004-0109.patch
new file mode 100644
index 000000000000..03f49e4f6d7d
--- /dev/null
+++ b/sys-kernel/gentoo-dev-sources/files/gentoo-dev-sources-2.6.5.CAN-2004-0109.patch
@@ -0,0 +1,13 @@
+--- linux/mm/mremap.c.orig 2004-01-05 17:01:21.382104120 +0000
++++ linux/mm/mremap.c 2004-01-05 17:15:25.689749848 +0000
+@@ -270,6 +270,10 @@
+ old_len = PAGE_ALIGN(old_len);
+ new_len = PAGE_ALIGN(new_len);
+
++ /* Don't allow the degenerate cases */
++ if (!old_len || !new_len)
++ goto out;
++
+ /* new_addr is only valid if MREMAP_FIXED is specified */
+ if (flags & MREMAP_FIXED) {
+ if (new_addr & ~PAGE_MASK)