summaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-25 16:39:23 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-25 22:00:39 +0200
commitea3bea3a1d38aab1542176b2ff11a99ce3db9656 (patch)
treeb7677994bf337d8295284c496def5f99066f13a2 /net/dccp/ipv4.c
parentdccp: constify dccp_make_response() socket argument (diff)
downloadlinux-ea3bea3a1d38aab1542176b2ff11a99ce3db9656.tar.xz
linux-ea3bea3a1d38aab1542176b2ff11a99ce3db9656.zip
tcp/dccp: constify rtx_synack() and friends
This is done to make sure we do not change listener socket while sending SYNACK packets while socket lock is not held. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index ccf4c5629b3c..a46ae9c69ccf 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -498,7 +498,7 @@ static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk,
return &rt->dst;
}
-static int dccp_v4_send_response(struct sock *sk, struct request_sock *req)
+static int dccp_v4_send_response(const struct sock *sk, struct request_sock *req)
{
int err = -1;
struct sk_buff *skb;