inet: constify inet_rtx_syn_ack() sock argument
SYNACK packets are sent on behalf on unlocked listeners or fastopen sockets. Mark socket as const to catch future changes that might break the assumption. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ea3bea3a1d
commit
1b70e977ce
@@ -563,7 +563,7 @@ static inline void syn_ack_recalc(struct request_sock *req, const int thresh,
|
||||
req->num_timeout >= rskq_defer_accept - 1;
|
||||
}
|
||||
|
||||
int inet_rtx_syn_ack(struct sock *parent, struct request_sock *req)
|
||||
int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req)
|
||||
{
|
||||
int err = req->rsk_ops->rtx_syn_ack(parent, req);
|
||||
|
||||
|
Reference in New Issue
Block a user