diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-02-24 16:29:09 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-02-24 16:29:09 +0000 |
commit | 1a60e2b91ab2e1e559e8ad4ef55fe5f327e07fa6 (patch) | |
tree | f1d49ffbfb762ba3cfa37e747023bb5383b80bb7 /sys-kernel/openmosix-sources | |
parent | Change is_kernel check so it defaults to running kernel if /usr/src/linux doe... (diff) | |
download | gentoo-2-1a60e2b91ab2e1e559e8ad4ef55fe5f327e07fa6.tar.gz gentoo-2-1a60e2b91ab2e1e559e8ad4ef55fe5f327e07fa6.tar.bz2 gentoo-2-1a60e2b91ab2e1e559e8ad4ef55fe5f327e07fa6.zip |
Fixed broken munmap patch; closes bug #42727.
Diffstat (limited to 'sys-kernel/openmosix-sources')
-rw-r--r-- | sys-kernel/openmosix-sources/files/openmosix-sources-2.4.20.munmap.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-kernel/openmosix-sources/files/openmosix-sources-2.4.20.munmap.patch b/sys-kernel/openmosix-sources/files/openmosix-sources-2.4.20.munmap.patch index 3c01b3447ec6..d2cf4f4303f4 100644 --- a/sys-kernel/openmosix-sources/files/openmosix-sources-2.4.20.munmap.patch +++ b/sys-kernel/openmosix-sources/files/openmosix-sources-2.4.20.munmap.patch @@ -5,7 +5,7 @@ goto out; - do_munmap(current->mm, new_addr, new_len, 1); -+ ret = do_munmap(current->mm, new_addr, new_len); ++ ret = do_munmap(current->mm, new_addr, new_len, 1); + if (ret && new_len) + goto out; } @@ -18,7 +18,7 @@ - ret = addr; if (old_len >= new_len) { - do_munmap(current->mm, addr+new_len, old_len - new_len, 1); -+ ret = do_munmap(current->mm, addr+new_len, old_len - new_len); ++ ret = do_munmap(current->mm, addr+new_len, old_len - new_len, 1); + if (ret && old_len != new_len) + goto out; + ret = addr; |