mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
rxrpc: Fix send in rxrpc_send_data_packet()
[ Upstream commit93c62c45ed
] 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:5a924b8951
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
17634603d4
commit
f0a04a0e1a
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ int rxrpc_send_data_packet(struct rxrpc_call *call, struct sk_buff *skb,
|
||||||
(char *)&opt, sizeof(opt));
|
(char *)&opt, sizeof(opt));
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
ret = kernel_sendmsg(conn->params.local->socket, &msg,
|
ret = kernel_sendmsg(conn->params.local->socket, &msg,
|
||||||
iov, 1, iov[0].iov_len);
|
iov, 2, len);
|
||||||
|
|
||||||
opt = IPV6_PMTUDISC_DO;
|
opt = IPV6_PMTUDISC_DO;
|
||||||
kernel_setsockopt(conn->params.local->socket,
|
kernel_setsockopt(conn->params.local->socket,
|
||||||
|
|
Loading…
Reference in a new issue