aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/lapb/lapb_iface.c')
-rw-r--r--net/lapb/lapb_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
index 03f0cd872dce..3c03f6512c5f 100644
--- a/net/lapb/lapb_iface.c
+++ b/net/lapb/lapb_iface.c
@@ -68,7 +68,6 @@ static void __lapb_remove_cb(struct lapb_cb *lapb)
68 lapb_put(lapb); 68 lapb_put(lapb);
69 } 69 }
70} 70}
71EXPORT_SYMBOL(lapb_register);
72 71
73/* 72/*
74 * Add a socket to the bound sockets list. 73 * Add a socket to the bound sockets list.
@@ -115,7 +114,6 @@ static struct lapb_cb *lapb_create_cb(void)
115{ 114{
116 struct lapb_cb *lapb = kzalloc(sizeof(*lapb), GFP_ATOMIC); 115 struct lapb_cb *lapb = kzalloc(sizeof(*lapb), GFP_ATOMIC);
117 116
118
119 if (!lapb) 117 if (!lapb)
120 goto out; 118 goto out;
121 119
@@ -167,6 +165,7 @@ out:
167 write_unlock_bh(&lapb_list_lock); 165 write_unlock_bh(&lapb_list_lock);
168 return rc; 166 return rc;
169} 167}
168EXPORT_SYMBOL(lapb_register);
170 169
171int lapb_unregister(struct net_device *dev) 170int lapb_unregister(struct net_device *dev)
172{ 171{
@@ -177,6 +176,7 @@ int lapb_unregister(struct net_device *dev)
177 lapb = __lapb_devtostruct(dev); 176 lapb = __lapb_devtostruct(dev);
178 if (!lapb) 177 if (!lapb)
179 goto out; 178 goto out;
179 lapb_put(lapb);
180 180
181 lapb_stop_t1timer(lapb); 181 lapb_stop_t1timer(lapb);
182 lapb_stop_t2timer(lapb); 182 lapb_stop_t2timer(lapb);