Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67e04c29 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

l2tp: unregister l2tp_net_ops on failure path

parent ecf7b361
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}