Lines Matching refs:err2
2593 int err, err2; in do_sys32_semctl() local
2632 err2 = copy_to_user(&usp->sem_perm, &s64.sem_perm, in do_sys32_semctl()
2634 err2 |= __put_user(s64.sem_otime, &usp->sem_otime); in do_sys32_semctl()
2635 err2 |= __put_user(s64.sem_ctime, &usp->sem_ctime); in do_sys32_semctl()
2636 err2 |= __put_user(s64.sem_nsems, &usp->sem_nsems); in do_sys32_semctl()
2637 if (err2) in do_sys32_semctl()
2649 err2 = copy_to_user(&usp->sem_perm, &s.sem_perm, in do_sys32_semctl()
2651 err2 |= __put_user(s.sem_otime, &usp->sem_otime); in do_sys32_semctl()
2652 err2 |= __put_user(s.sem_ctime, &usp->sem_ctime); in do_sys32_semctl()
2653 err2 |= __put_user(s.sem_nsems, &usp->sem_nsems); in do_sys32_semctl()
2654 if (err2) in do_sys32_semctl()
2787 int err = -EINVAL, err2; in do_sys32_msgctl() local
2803 err2 = copy_from_user(&m64.msg_perm, &up->msg_perm, in do_sys32_msgctl()
2805 err2 |= __get_user(m64.msg_qbytes, &up->msg_qbytes); in do_sys32_msgctl()
2806 if (err2) { in do_sys32_msgctl()
2819 err2 = copy_from_user(&m.msg_perm, &up->msg_perm, in do_sys32_msgctl()
2821 err2 |= __get_user(m.msg_qbytes, &up->msg_qbytes); in do_sys32_msgctl()
2822 if (err2) { in do_sys32_msgctl()
2845 err2 = copy_to_user(&up->msg_perm, &m64.msg_perm, in do_sys32_msgctl()
2847 err2 |= __put_user(m64.msg_stime, &up->msg_stime); in do_sys32_msgctl()
2848 err2 |= __put_user(m64.msg_rtime, &up->msg_rtime); in do_sys32_msgctl()
2849 err2 |= __put_user(m64.msg_ctime, &up->msg_ctime); in do_sys32_msgctl()
2850 err2 |= __put_user(m64.msg_cbytes, &up->msg_cbytes); in do_sys32_msgctl()
2851 err2 |= __put_user(m64.msg_qnum, &up->msg_qnum); in do_sys32_msgctl()
2852 err2 |= __put_user(m64.msg_qbytes, &up->msg_qbytes); in do_sys32_msgctl()
2853 err2 |= __put_user(m64.msg_lspid, &up->msg_lspid); in do_sys32_msgctl()
2854 err2 |= __put_user(m64.msg_lrpid, &up->msg_lrpid); in do_sys32_msgctl()
2855 if (err2) in do_sys32_msgctl()
2866 err2 = copy_to_user(&up->msg_perm, &m.msg_perm, in do_sys32_msgctl()
2868 err2 |= __put_user(m.msg_stime, &up->msg_stime); in do_sys32_msgctl()
2869 err2 |= __put_user(m.msg_rtime, &up->msg_rtime); in do_sys32_msgctl()
2870 err2 |= __put_user(m.msg_ctime, &up->msg_ctime); in do_sys32_msgctl()
2871 err2 |= __put_user(m.msg_cbytes, &up->msg_cbytes); in do_sys32_msgctl()
2872 err2 |= __put_user(m.msg_qnum, &up->msg_qnum); in do_sys32_msgctl()
2873 err2 |= __put_user(m.msg_qbytes, &up->msg_qbytes); in do_sys32_msgctl()
2874 err2 |= __put_user(m.msg_lspid, &up->msg_lspid); in do_sys32_msgctl()
2875 err2 |= __put_user(m.msg_lrpid, &up->msg_lrpid); in do_sys32_msgctl()
2876 if (err2) in do_sys32_msgctl()
2903 int err = -EINVAL, err2; in do_sys32_shmctl() local
2960 err2 = copy_to_user(&up->shm_perm, &s64.shm_perm, in do_sys32_shmctl()
2962 err2 |= __put_user(s64.shm_atime, &up->shm_atime); in do_sys32_shmctl()
2963 err2 |= __put_user(s64.shm_dtime, &up->shm_dtime); in do_sys32_shmctl()
2964 err2 |= __put_user(s64.shm_ctime, &up->shm_ctime); in do_sys32_shmctl()
2965 err2 |= __put_user(s64.shm_segsz, &up->shm_segsz); in do_sys32_shmctl()
2966 err2 |= __put_user(s64.shm_nattch, &up->shm_nattch); in do_sys32_shmctl()
2967 err2 |= __put_user(s64.shm_cpid, &up->shm_cpid); in do_sys32_shmctl()
2968 err2 |= __put_user(s64.shm_lpid, &up->shm_lpid); in do_sys32_shmctl()
2969 if (err2) in do_sys32_shmctl()
2982 err2 = copy_to_user(&up->shm_perm, &s.shm_perm, in do_sys32_shmctl()
2984 err2 |= __put_user (s.shm_atime, &up->shm_atime); in do_sys32_shmctl()
2985 err2 |= __put_user (s.shm_dtime, &up->shm_dtime); in do_sys32_shmctl()
2986 err2 |= __put_user (s.shm_ctime, &up->shm_ctime); in do_sys32_shmctl()
2987 err2 |= __put_user (s.shm_segsz, &up->shm_segsz); in do_sys32_shmctl()
2988 err2 |= __put_user (s.shm_nattch, &up->shm_nattch); in do_sys32_shmctl()
2989 err2 |= __put_user (s.shm_cpid, &up->shm_cpid); in do_sys32_shmctl()
2990 err2 |= __put_user (s.shm_lpid, &up->shm_lpid); in do_sys32_shmctl()
2991 if (err2) in do_sys32_shmctl()
3010 err2 = put_user(si.used_ids, &uip->used_ids); in do_sys32_shmctl()
3011 err2 |= __put_user(si.shm_tot, &uip->shm_tot); in do_sys32_shmctl()
3012 err2 |= __put_user(si.shm_rss, &uip->shm_rss); in do_sys32_shmctl()
3013 err2 |= __put_user(si.shm_swp, &uip->shm_swp); in do_sys32_shmctl()
3014 err2 |= __put_user(si.swap_attempts, &uip->swap_attempts); in do_sys32_shmctl()
3015 err2 |= __put_user(si.swap_successes, &uip->swap_successes); in do_sys32_shmctl()
3016 if (err2) in do_sys32_shmctl()