l2tp: unregister l2tp_net_ops on failure path
Subsystems (2)
PATCH 1/1 l2tp: unregister l2tp_net_ops on failure path
Signed-off-by Cong Wang <[email protected]>
--- net/l2tp/l2tp_core.c | 1 + 1 file changed, 1 insertion(+)
net/l2tp/l2tp_core.c +1 -0
@@ -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; }
Signature · 1 line
1.8.3.1
From: Cong Wang <[email protected]>
Date: Fri, 3 Apr 2015 13:46:09 -0700
Quoted 1 line
Signed-off-by Cong Wang <[email protected]>
Applied, thanks.