Searched refs:kcmlen (Results 1 – 1 of 1) sorted by relevance
144 __kernel_size_t kcmlen, tmp; in cmsghdr_from_user_compat_to_kern() local150 kcmlen = 0; in cmsghdr_from_user_compat_to_kern()163 kcmlen += tmp; in cmsghdr_from_user_compat_to_kern()166 if (kcmlen == 0) in cmsghdr_from_user_compat_to_kern()174 if (kcmlen > stackbuf_size) in cmsghdr_from_user_compat_to_kern()175 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()180 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern()189 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()209 if ((char *)kcmsg - (char *)kcmsg_base != kcmlen) in cmsghdr_from_user_compat_to_kern()214 kmsg->msg_controllen = kcmlen; in cmsghdr_from_user_compat_to_kern()[all …]