diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/pac-sources/files/pac-sources.munmap.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-kernel/pac-sources/files/pac-sources.munmap.patch b/sys-kernel/pac-sources/files/pac-sources.munmap.patch index 3c01b3447ec6..d2cf4f4303f4 100644 --- a/sys-kernel/pac-sources/files/pac-sources.munmap.patch +++ b/sys-kernel/pac-sources/files/pac-sources.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; |