diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nfnetlink.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 3cfa76b89a20..e212102b0e4a 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
@@ -148,16 +148,7 @@ EXPORT_SYMBOL_GPL(nfnetlink_has_listeners); | |||
148 | 148 | ||
149 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) | 149 | int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) |
150 | { | 150 | { |
151 | int err = 0; | 151 | return nlmsg_notify(nfnl, skb, pid, group, echo, gfp_any()); |
152 | |||
153 | NETLINK_CB(skb).dst_group = group; | ||
154 | if (echo) | ||
155 | atomic_inc(&skb->users); | ||
156 | netlink_broadcast(nfnl, skb, pid, group, gfp_any()); | ||
157 | if (echo) | ||
158 | err = netlink_unicast(nfnl, skb, pid, MSG_DONTWAIT); | ||
159 | |||
160 | return err; | ||
161 | } | 152 | } |
162 | EXPORT_SYMBOL_GPL(nfnetlink_send); | 153 | EXPORT_SYMBOL_GPL(nfnetlink_send); |
163 | 154 | ||