aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-26 10:08:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-26 10:08:52 -0400
commit37d96c28ecf0af1215bb6bbf580dbb1fabb5a6ec (patch)
tree408d5c54b0601dfc20847c78799ddffc1bf75750 /net
parentaa77677e0a288e08073620db5d2a31df83ca4788 (diff)
parent08613e4626c06ca408fc55071f6aedee36986a87 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: caif: Fix BUG() with network namespaces net: make bonding slaves honour master's skb->priority net: Unlock sock before calling sk_free()
Diffstat (limited to 'net')
-rw-r--r--net/caif/caif_dev.c5
-rw-r--r--net/core/sock.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index 7f9ac0742d19..47fc8f3a47cf 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -212,8 +212,7 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what,
212 enum cfcnfg_phy_preference pref; 212 enum cfcnfg_phy_preference pref;
213 enum cfcnfg_phy_type phy_type; 213 enum cfcnfg_phy_type phy_type;
214 struct cfcnfg *cfg; 214 struct cfcnfg *cfg;
215 struct caif_device_entry_list *caifdevs = 215 struct caif_device_entry_list *caifdevs;
216 caif_device_list(dev_net(dev));
217 216
218 if (dev->type != ARPHRD_CAIF) 217 if (dev->type != ARPHRD_CAIF)
219 return 0; 218 return 0;
@@ -222,6 +221,8 @@ static int caif_device_notify(struct notifier_block *me, unsigned long what,
222 if (cfg == NULL) 221 if (cfg == NULL)
223 return 0; 222 return 0;
224 223
224 caifdevs = caif_device_list(dev_net(dev));
225
225 switch (what) { 226 switch (what) {
226 case NETDEV_REGISTER: 227 case NETDEV_REGISTER:
227 caifd = caif_device_alloc(dev); 228 caifd = caif_device_alloc(dev);
diff --git a/net/core/sock.c b/net/core/sock.c
index 5a087626bb3a..4ed7b1d12f5e 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1257,6 +1257,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
1257 /* It is still raw copy of parent, so invalidate 1257 /* It is still raw copy of parent, so invalidate
1258 * destructor and make plain sk_free() */ 1258 * destructor and make plain sk_free() */
1259 newsk->sk_destruct = NULL; 1259 newsk->sk_destruct = NULL;
1260 bh_unlock_sock(newsk);
1260 sk_free(newsk); 1261 sk_free(newsk);
1261 newsk = NULL; 1262 newsk = NULL;
1262 goto out; 1263 goto out;