]> 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)
commitad77295b9ff29a98dd159a42662e09954ccee261
tree75580d54c9267b37792257d37c7e0a1014dd6740
parent54df8e1bfad2c643bf8df55b9307b97b38731374
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: 890847bc871f ("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