diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-08-25 17:51:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-28 21:34:58 +0300 |
commit | e702c1204eb57788ef189c839c8c779368267d70 (patch) | |
tree | ef7cfae25bf1b386f03c5dfb8c44266083d0c53b /block/blk-stat.c | |
parent | 4e4b21da3acc68a7ea55f850cacc13706b7480e9 (diff) | |
download | linux-e702c1204eb57788ef189c839c8c779368267d70.tar.xz |
l2tp: hold tunnel used while creating sessions with netlink
Use l2tp_tunnel_get() to retrieve tunnel, so that it can't go away on
us. Otherwise l2tp_tunnel_destruct() might release the last reference
count concurrently, thus freeing the tunnel while we're using it.
Fixes: 309795f4bec2 ("l2tp: Add netlink control API for L2TP")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-stat.c')
0 files changed, 0 insertions, 0 deletions