--- linux/arch/um/kernel/skas/process.c.orig +++ linux/arch/um/kernel/skas/process.c @@ -343,20 +343,10 @@ int new_mm(int from) int n, fd = os_open_file("/proc/mm", of_cloexec(of_write(OPENFLAGS())), 0); - if(fd < 0) - return(-errno); + if (fd < 0) + return -errno; - if(from != -1){ - copy = ((struct proc_mm_op) { .op = MM_COPY_SEGMENTS, - .u = - { .copy_segments = from } } ); - n = os_write_file(fd, ©, sizeof(copy)); - if(n != sizeof(copy)) - printk("new_mm : /proc/mm copy_segments failed, " - "errno = %d\n", errno); - } - - return(fd); + return fd; } void switch_mm_skas(int mm_fd)