diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-24 19:32:59 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-24 19:32:59 -0400 |
| commit | 1c5ba67d2277ac2faf37c61076e8b5fa312be492 (patch) | |
| tree | a645a1a2f7aea7faafcd67c6ba1bfd424b95cd7d /net/lapb/lapb_iface.c | |
| parent | dbb5281a1f84b2f93032d4864c211ce8a20811a7 (diff) | |
| parent | 045df37e743c7448931131988e99e8fe0cc92a54 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Resolve conflict between d2912cb15bdd ("treewide: Replace GPLv2
boilerplate/reference with SPDX - rule 500") removing the GPL disclaimer
and fe03d4745675 ("Update my email address") which updates Jozsef
Kadlecsik's email.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')
| -rw-r--r-- | net/lapb/lapb_iface.c | 4 |
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 | } |
| 71 | EXPORT_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 | } |
| 168 | EXPORT_SYMBOL(lapb_register); | ||
| 170 | 169 | ||
| 171 | int lapb_unregister(struct net_device *dev) | 170 | int 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); |
