summaryrefslogtreecommitdiff
path: root/block/blk-stat.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-08-25 17:51:46 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-28 21:34:58 +0300
commite702c1204eb57788ef189c839c8c779368267d70 (patch)
treeef7cfae25bf1b386f03c5dfb8c44266083d0c53b /block/blk-stat.c
parent4e4b21da3acc68a7ea55f850cacc13706b7480e9 (diff)
downloadlinux-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