diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-11-10 22:06:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-11 14:08:23 +0100 |
commit | 7198c77aa05560c257ee377ec1f4796812121580 (patch) | |
tree | bf7902522bdec64433afc2984fa19b5789223274 /drivers | |
parent | l2tp: remove .tunnel_sock from struct l2tp_eth (diff) | |
download | linux-7198c77aa05560c257ee377ec1f4796812121580.tar.xz linux-7198c77aa05560c257ee377ec1f4796812121580.zip |
l2tp: avoid using ->tunnel_sock for getting session's parent tunnel
Sessions don't need to use l2tp_sock_to_tunnel(xxx->tunnel_sock) for
accessing their parent tunnel. They have the .tunnel field in the
l2tp_session structure for that. Furthermore, in all these cases, the
session is registered, so we're guaranteed that .tunnel isn't NULL and
that the session properly holds a reference on the tunnel.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions