Home
last modified time | relevance | path

Searched refs:kcmlen (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/
H A Dcompat.c145 __kernel_size_t kcmlen, tmp; in cmsghdr_from_user_compat_to_kern() local
151 kcmlen = 0; in cmsghdr_from_user_compat_to_kern()
164 kcmlen += tmp; in cmsghdr_from_user_compat_to_kern()
167 if (kcmlen == 0) in cmsghdr_from_user_compat_to_kern()
175 if (kcmlen > stackbuf_size) in cmsghdr_from_user_compat_to_kern()
176 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()
181 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern()
190 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()
210 if ((char *)kcmsg - (char *)kcmsg_base != kcmlen) in cmsghdr_from_user_compat_to_kern()
216 kmsg->msg_controllen = kcmlen; in cmsghdr_from_user_compat_to_kern()
[all …]