net: compat_mmsghdr must be used in sys_recvmmsg
authorJean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Tue, 1 Dec 2009 08:47:26 +0000 (08:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 09:23:23 +0000 (01:23 -0800)
commitd7256d0eb4c82b789125f610fea11c6e82b1bcff
tree60cf4d3350f16dfaba359933aa5ed9a8e97b0533
parent810c07194f6ef541625e65b53392e9f605611a1a
net: compat_mmsghdr must be used in sys_recvmmsg

Both to traverse the entries and to set the msg_len field.

Commiter note: folded two patches and avoided one branch repeating the
compat test.

Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c