]> git.baikalelectronics.ru Git - kernel.git/commit
inet: constify ip_route_output_flow() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:10 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:37 +0000 (13:00 -0700)
commitf28169b8b53b97d8aa1f175c9cd6e0d8b72ce38f
treebbc0ff11d4654d58f95dd667cdb0b560eadc2b00
parentc37e7a4bf4ca0089bf0f2966c40f88f66eca25e9
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>
include/net/dst.h
include/net/route.h
net/ipv4/route.c
net/xfrm/xfrm_policy.c