Merge branch 'l2tp-remove-unsafe-calls-to-l2tp_tunnel_find_nth'
authorDavid S. Miller <[email protected]>
Fri, 13 Apr 2018 16:17:27 +0000 (12:17 -0400)
committerDavid S. Miller <[email protected]>
Fri, 13 Apr 2018 16:17:27 +0000 (12:17 -0400)
Guillaume Nault says:

====================
l2tp: remove unsafe calls to l2tp_tunnel_find_nth()

Using l2tp_tunnel_find_nth() is racy, because the returned tunnel can
go away as soon as this function returns. This series introduce
l2tp_tunnel_get_nth() as a safe replacement to fixes these races.

With this series, all unsafe tunnel/session lookups are finally gone.
====================

Acked-by: Jason Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

Trivial merge