Searched refs:ucmlen (Results 1 – 1 of 1) sorted by relevance
/linux-2.6.39/net/ |
D | compat.c | 121 #define CMSG_COMPAT_OK(ucmlen, ucmsg, mhdr) \ argument 122 ((ucmlen) >= sizeof(struct compat_cmsghdr) && \ 123 (ucmlen) <= (unsigned long) \ 146 compat_size_t ucmlen; in cmsghdr_from_user_compat_to_kern() local 154 if (get_user(ucmlen, &ucmsg->cmsg_len)) in cmsghdr_from_user_compat_to_kern() 158 if (!CMSG_COMPAT_OK(ucmlen, ucmsg, kmsg)) in cmsghdr_from_user_compat_to_kern() 161 tmp = ((ucmlen - CMSG_COMPAT_ALIGN(sizeof(*ucmsg))) + in cmsghdr_from_user_compat_to_kern() 165 ucmsg = cmsg_compat_nxthdr(kmsg, ucmsg, ucmlen); in cmsghdr_from_user_compat_to_kern() 184 if (__get_user(ucmlen, &ucmsg->cmsg_len)) in cmsghdr_from_user_compat_to_kern() 186 if (!CMSG_COMPAT_OK(ucmlen, ucmsg, kmsg)) in cmsghdr_from_user_compat_to_kern() [all …]
|