Lines Matching refs:koptlen
579 int koptlen = optlen; in compat_mc_setsockopt() local
598 koptlen = sizeof(struct group_req); in compat_mc_setsockopt()
622 koptlen = sizeof(struct group_source_req); in compat_mc_setsockopt()
636 koptlen = optlen + sizeof(struct group_filter) - in compat_mc_setsockopt()
638 if (koptlen < GROUP_FILTER_SIZE(numsrc)) in compat_mc_setsockopt()
640 kgf = compat_alloc_user_space(koptlen); in compat_mc_setsockopt()
641 if (!access_ok(VERIFY_WRITE, kgf, koptlen) || in compat_mc_setsockopt()
657 return setsockopt(sock, level, optname, koptval, koptlen); in compat_mc_setsockopt()
667 int __user *koptlen; in compat_mc_getsockopt() local
674 koptlen = compat_alloc_user_space(sizeof(*koptlen)); in compat_mc_getsockopt()
685 if (!access_ok(VERIFY_WRITE, koptlen, sizeof(*koptlen)) || in compat_mc_getsockopt()
686 __put_user(klen, koptlen)) in compat_mc_getsockopt()
702 err = getsockopt(sock, level, optname, (char __user *)kgf, koptlen); in compat_mc_getsockopt()
706 if (!access_ok(VERIFY_READ, koptlen, sizeof(*koptlen)) || in compat_mc_getsockopt()
707 __get_user(klen, koptlen)) in compat_mc_getsockopt()