Searched refs:kcmsg (Results 1 – 1 of 1) sorted by relevance
145 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() local154 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()178 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()179 if (kcmsg == NULL) in cmsghdr_from_user_compat_to_kern()183 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern()194 kcmsg->cmsg_len = tmp; in cmsghdr_from_user_compat_to_kern()195 kcmsg->cmsg_level = cmsg.cmsg_level; in cmsghdr_from_user_compat_to_kern()196 kcmsg->cmsg_type = cmsg.cmsg_type; in cmsghdr_from_user_compat_to_kern()198 if (copy_from_user(CMSG_DATA(kcmsg), in cmsghdr_from_user_compat_to_kern()204 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()[all …]
Completed in 4 milliseconds