Searched refs:kcmsg (Results 1 – 1 of 1) sorted by relevance
142 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() local151 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()175 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()176 if (kcmsg == NULL) 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()191 kcmsg->cmsg_len = tmp; in cmsghdr_from_user_compat_to_kern()192 kcmsg->cmsg_level = cmsg.cmsg_level; in cmsghdr_from_user_compat_to_kern()193 kcmsg->cmsg_type = cmsg.cmsg_type; in cmsghdr_from_user_compat_to_kern()195 if (copy_from_user(CMSG_DATA(kcmsg), in cmsghdr_from_user_compat_to_kern()[all …]