aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-09-07 19:17:29 +0100
committerDavid Howells <dhowells@redhat.com>2022-11-08 16:42:15 +0000
commit8889a711f9b4dcf4dd1330fa493081beebd118c9 (patch)
treedd290e79f35612bfa0071d22d32b045defc8277b /net/rxrpc
parentf7fa52421f76309c574f2575701660bc3ea3a705 (diff)
downloadlinux-8889a711f9b4dcf4dd1330fa493081beebd118c9.tar.gz
rxrpc: Fix ack.bufferSize to be 0 when generating an ack
ack.bufferSize should be set to 0 when generating an ack. Fixes: 8d94aa381dab ("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
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/output.c b/net/rxrpc/output.c
index 77ed46ab33c52..b803bfe146dec 100644
--- a/net/rxrpc/output.c
+++ b/net/rxrpc/output.c
@@ -97,7 +97,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);