Skip to content

Commit

Permalink
rxrpc: Fix ack.bufferSize to be 0 when generating an ack
Browse files Browse the repository at this point in the history
ack.bufferSize should be set to 0 when generating an ack.

Fixes: 8d94aa3 ("rxrpc: Calls shouldn't hold socket refs")
Reported-by: Jeffrey Altman <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Marc Dionne <[email protected]>
cc: [email protected]
  • Loading branch information
dhowells committed Nov 8, 2022
1 parent f7fa524 commit 8889a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rxrpc/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8889a71

Please sign in to comment.