|
|
@@ -62,6 +62,7 @@
|
|
|
#include <asm/cacheflush.h>
|
|
|
#include <linux/hash.h>
|
|
|
#include <linux/genetlink.h>
|
|
|
+#include <linux/net_namespace.h>
|
|
|
|
|
|
#include <net/net_namespace.h>
|
|
|
#include <net/sock.h>
|
|
|
@@ -1415,7 +1416,8 @@ static void do_one_broadcast(struct sock *sk,
|
|
|
goto out;
|
|
|
}
|
|
|
NETLINK_CB(p->skb2).nsid = peernet2id(sock_net(sk), p->net);
|
|
|
- NETLINK_CB(p->skb2).nsid_is_set = true;
|
|
|
+ if (NETLINK_CB(p->skb2).nsid != NETNSA_NSID_NOT_ASSIGNED)
|
|
|
+ NETLINK_CB(p->skb2).nsid_is_set = true;
|
|
|
val = netlink_broadcast_deliver(sk, p->skb2);
|
|
|
if (val < 0) {
|
|
|
netlink_overrun(sk);
|