commit | 67e04c29ec0daad9ba29341b4dab4b89526994cf | [log] [tgz] |
---|---|---|
author | WANG Cong <xiyou.wangcong@gmail.com> | Fri Apr 03 13:46:09 2015 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 06 16:53:02 2015 -0400 |
tree | b4072c91b462b9621717bac31c4da0f499baea2a | |
parent | ecf7b361a6bc1fd5441e4d6a3d7433abbe577064 [diff] |
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>
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 895348e..a29a504 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c
@@ -1871,6 +1871,7 @@ 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; }