diff options
| author | Guillaume Nault <[email protected]> | 2018-04-10 19:01:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-04-11 21:41:27 +0000 |
| commit | f6cd651b056ffd3b4e8496afd44d4ed44bf69136 (patch) | |
| tree | f616d85bc1fa0339fc227d4672cea1f4b4042a30 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
| parent | l2tp: fix races in tunnel creation (diff) | |
| download | kernel-f6cd651b056ffd3b4e8496afd44d4ed44bf69136.tar.gz kernel-f6cd651b056ffd3b4e8496afd44d4ed44bf69136.zip | |
l2tp: fix race in duplicate tunnel detection
We can't use l2tp_tunnel_find() to prevent l2tp_nl_cmd_tunnel_create()
from creating a duplicate tunnel. A tunnel can be concurrently
registered after l2tp_tunnel_find() returns. Therefore, searching for
duplicates must be done at registration time.
Finally, remove l2tp_tunnel_find() entirely as it isn't use anywhere
anymore.
Fixes: 309795f4bec2 ("l2tp: Add netlink control API for L2TP")
Signed-off-by: Guillaume Nault <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
0 files changed, 0 insertions, 0 deletions
