Lines Matching refs:klen
669 int klen, ulen, err; in compat_mc_getsockopt() local
680 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt()
682 if (klen < GROUP_FILTER_SIZE(0)) in compat_mc_getsockopt()
686 __put_user(klen, koptlen)) in compat_mc_getsockopt()
690 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt()
707 __get_user(klen, koptlen)) in compat_mc_getsockopt()
710 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt()
716 if (!access_ok(VERIFY_READ, kgf, klen) || in compat_mc_getsockopt()
728 klen -= GROUP_FILTER_SIZE(0); in compat_mc_getsockopt()
730 if (copylen > klen) in compat_mc_getsockopt()
731 copylen = klen; in compat_mc_getsockopt()