]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb79cb74d44e3da4f9f4a75a6cbf5468b73cfb67
tree75580d54c9267b37792257d37c7e0a1014dd6740
parentf3f3cfbfad31b7dd2a0e498714b82133bdff5cbb
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: f24cce793e15 ("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