net: compat_sys_recvmmsg user timespec arg can be NULL
authorJean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Tue, 1 Dec 2009 07:52:16 +0000 (07:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 09:23:23 +0000 (01:23 -0800)
commit5b23136bcf766a58160a319677b366c90f0cd223
treeda895eecddb4ca3d6a14217917e2193eaca609ea
parentd7256d0eb4c82b789125f610fea11c6e82b1bcff
net: compat_sys_recvmmsg user timespec arg can be NULL

We must test if user timespec is non-NULL before copying from userpace,
same as sys_recvmmsg().

Commiter note: changed it so that we have just one branch.

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/compat.c