af_iucv: recvmsg problem for SOCK_STREAM sockets
authorUrsula Braun <ursula.braun@de.ibm.com>
Wed, 19 Mar 2014 06:57:59 +0000 (07:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 04:06:55 +0000 (00:06 -0400)
commit2f139a5d8225666faee9f1d3c5629c4e5ff947aa
treec00a561cf894c8fe4abe7694a15e3e1e049f2989
parent20248162f221184790b598a88763a87170b0f08e
af_iucv: recvmsg problem for SOCK_STREAM sockets

Commit f9c41a62bba3f3f7ef3541b2a025e3371bcbba97 introduced
a problem for SOCK_STREAM sockets, when only part of the
incoming iucv message is received by user space. In this
case the remaining data of the iucv message is lost.
This patch makes sure an incompletely received iucv message
is queued back to the receive queue.

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