]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rxrpc: Fix ack.bufferSize to be 0 when generating an ack
authorDavid Howells <dhowells@redhat.com>
Wed, 7 Sep 2022 18:17:29 +0000 (19:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:02 +0000 (11:41 +0100)
[ Upstream commit 8889a711f9b4dcf4dd1330fa493081beebd118c9 ]

ack.bufferSize should be set to 0 when generating an ack.

Fixes: 5ff602858d22 ("rxrpc: Calls shouldn't hold socket refs")
Reported-by: Jeffrey Altman <jaltman@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/output.c

index 6202d2e32914a1d5737d621e09af7a2512fedc13..09fcc54245c7591188e4bc67654322eeb2ba4487 100644 (file)
@@ -93,7 +93,7 @@ static size_t rxrpc_fill_out_ack(struct rxrpc_connection *conn,
        *_hard_ack = hard_ack;
        *_top = top;
 
-       pkt->ack.bufferSpace    = htons(8);
+       pkt->ack.bufferSpace    = htons(0);
        pkt->ack.maxSkew        = htons(0);
        pkt->ack.firstPacket    = htonl(hard_ack + 1);
        pkt->ack.previousPacket = htonl(call->ackr_highest_seq);