rxrpc: Fix send in rxrpc_send_data_packet()
authorDavid Howells <dhowells@redhat.com>
Thu, 22 Feb 2018 14:38:14 +0000 (14:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Feb 2018 20:37:47 +0000 (15:37 -0500)
commit93c62c45ed5fad1b87e3a45835b251cd68de9c46
tree75580d54c9267b37792257d37c7e0a1014dd6740
parent370c10522e96bf1b2e7fd9e906dbe8fb5be895d2
rxrpc: Fix send in rxrpc_send_data_packet()

All the kernel_sendmsg() calls in rxrpc_send_data_packet() need to send
both parts of the iov[] buffer, but one of them does not.  Fix it so that
it does.

Without this, short IPv6 rxrpc DATA packets may be seen that have the rxrpc
header included, but no payload.

Fixes: 5a924b8951f8 ("rxrpc: Don't store the rxrpc header in the Tx queue sk_buffs")
Reported-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/output.c