mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:20:49 +07:00
l2tp: unregister l2tp_net_ops on failure path
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ecf7b361a6
commit
67e04c29ec
@ -1871,6 +1871,7 @@ static int __init l2tp_init(void)
|
||||
l2tp_wq = alloc_workqueue("l2tp", WQ_UNBOUND, 0);
|
||||
if (!l2tp_wq) {
|
||||
pr_err("alloc_workqueue failed\n");
|
||||
unregister_pernet_device(&l2tp_net_ops);
|
||||
rc = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user