Home
last modified time | relevance | path

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

/openbmc/linux/net/
H A Dcompat.c119 #define CMSG_COMPAT_OK(ucmlen, ucmsg, mhdr) \ argument
120 ((ucmlen) >= sizeof(struct compat_cmsghdr) && \
121 (ucmlen) <= (unsigned long) \
144 compat_size_t ucmlen; in cmsghdr_from_user_compat_to_kern() local
155 if (get_user(ucmlen, &ucmsg->cmsg_len)) in cmsghdr_from_user_compat_to_kern()
159 if (!CMSG_COMPAT_OK(ucmlen, ucmsg, kmsg)) in cmsghdr_from_user_compat_to_kern()
162 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern()
165 ucmsg = cmsg_compat_nxthdr(kmsg, ucmsg, ucmlen); in cmsghdr_from_user_compat_to_kern()