Lines Matching refs:klen
636 int klen, ulen, err; in compat_mc_getsockopt() local
647 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt()
649 if (klen < GROUP_FILTER_SIZE(0)) in compat_mc_getsockopt()
653 __put_user(klen, koptlen)) in compat_mc_getsockopt()
657 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt()
674 __get_user(klen, koptlen)) in compat_mc_getsockopt()
677 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt()
683 if (!access_ok(VERIFY_READ, kgf, klen) || in compat_mc_getsockopt()
695 klen -= GROUP_FILTER_SIZE(0); in compat_mc_getsockopt()
697 if (copylen > klen) in compat_mc_getsockopt()
698 copylen = klen; in compat_mc_getsockopt()