diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-25 16:39:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-25 22:00:37 +0200 |
commit | 6f9c961546699ff8bc5e1c1c52200616867ec68a (patch) | |
tree | bbc0ff11d4654d58f95dd667cdb0b560eadc2b00 /include/net/route.h | |
parent | tcp: constify tcp_openreq_init_rwin() (diff) | |
download | linux-6f9c961546699ff8bc5e1c1c52200616867ec68a.tar.xz linux-6f9c961546699ff8bc5e1c1c52200616867ec68a.zip |
inet: constify ip_route_output_flow() socket argument
Very soon, TCP stack might call inet_csk_route_req(), which
calls inet_csk_route_req() with an unlocked listener socket,
so we need to make sure ip_route_output_flow() is not trying to
change any field from its socket argument.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 10a7d21a211c..414beadc619f 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -114,7 +114,7 @@ void rt_cache_flush(struct net *net); void rt_flush_dev(struct net_device *dev); struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, - struct sock *sk); + const struct sock *sk); struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig); |