Commit 793f3aa9 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: shmem_remap arguments resort

Style tuning, no func change
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 5b47af26
......@@ -359,8 +359,8 @@ static int shmem_remap(pid_t pid, struct shmems *old_addr,
return -1;
}
ret = mmap(new_addr, SHMEMS_SIZE,
PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, 0);
ret = mmap(new_addr, SHMEMS_SIZE, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_FIXED, fd, 0);
if (ret != new_addr) {
pr_perror("mmap failed\n");
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment