diff options
Diffstat (limited to 'net/compat.c')
-rw-r--r-- | net/compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/compat.c b/net/compat.c index 4e27dd1cd3a6..ba3ac722714d 100644 --- a/net/compat.c +++ b/net/compat.c | |||
@@ -130,6 +130,9 @@ int cmsghdr_from_user_compat_to_kern(struct msghdr *kmsg, struct sock *sk, | |||
130 | __kernel_size_t kcmlen, tmp; | 130 | __kernel_size_t kcmlen, tmp; |
131 | int err = -EFAULT; | 131 | int err = -EFAULT; |
132 | 132 | ||
133 | BUILD_BUG_ON(sizeof(struct compat_cmsghdr) != | ||
134 | CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr))); | ||
135 | |||
133 | kcmlen = 0; | 136 | kcmlen = 0; |
134 | kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; | 137 | kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; |
135 | ucmsg = CMSG_COMPAT_FIRSTHDR(kmsg); | 138 | ucmsg = CMSG_COMPAT_FIRSTHDR(kmsg); |