]> git.baikalelectronics.ru Git - kernel.git/commit
net: Assert at build time the assumptions we make about the CMSG header.
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:24:19 +0000 (13:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:24:19 +0000 (13:24 -0500)
commita0632de3adf13b3f0a6d4326e482faffa3ab6436
tree4987c1a7d7ce5273097bab8debde9ba2fde343ee
parent4232fe6cb2db205409d5a3ee5b988f2dd9acba5d
net: Assert at build time the assumptions we make about the CMSG header.

It must always be the case that CMSG_ALIGN(sizeof(hdr)) == sizeof(hdr).

Otherwise there are missing adjustments in the various calculations
that parse and build these things.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/compat.c
net/socket.c