af_iucv: cleanup and refactor recvmsg() EFAULT handling
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 21 Apr 2009 23:26:26 +0000 (23:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2009 11:04:37 +0000 (04:04 -0700)
commit802788bf90f78e7f248e78d4d0510bb00e976db8
tree41b055bd4697a78ca67b833b299044bd6e5bb2e7
parentaa8e71f58ab8e01d63c33df40ff1bcb997c9df92
af_iucv: cleanup and refactor recvmsg() EFAULT handling

If the skb cannot be copied to user iovec, always return -EFAULT.
The skb is enqueued again, except MSG_PEEK flag is set, to allow user space
applications to correct its iovec pointer.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c