Lines Matching refs:klen
666 int klen, ulen, err; in compat_mc_getsockopt() local
677 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt()
679 if (klen < GROUP_FILTER_SIZE(0)) in compat_mc_getsockopt()
683 __put_user(klen, koptlen)) in compat_mc_getsockopt()
687 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt()
704 __get_user(klen, koptlen)) in compat_mc_getsockopt()
707 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt()
713 if (!access_ok(VERIFY_READ, kgf, klen) || in compat_mc_getsockopt()
725 klen -= GROUP_FILTER_SIZE(0); in compat_mc_getsockopt()
727 if (copylen > klen) in compat_mc_getsockopt()
728 copylen = klen; in compat_mc_getsockopt()