diff options
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 852829139c6..81506474a4f 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -660,7 +660,7 @@ act_get_notify(u32 pid, struct nlmsghdr *n, struct tc_action *a, int event) | |||
660 | return -EINVAL; | 660 | return -EINVAL; |
661 | } | 661 | } |
662 | 662 | ||
663 | return rtnl_unicast(skb, pid); | 663 | return rtnl_unicast(skb, &init_net, pid); |
664 | } | 664 | } |
665 | 665 | ||
666 | static struct tc_action * | 666 | static struct tc_action * |
@@ -781,7 +781,7 @@ static int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid) | |||
781 | nlh->nlmsg_flags |= NLM_F_ROOT; | 781 | nlh->nlmsg_flags |= NLM_F_ROOT; |
782 | module_put(a->ops->owner); | 782 | module_put(a->ops->owner); |
783 | kfree(a); | 783 | kfree(a); |
784 | err = rtnetlink_send(skb, pid, RTNLGRP_TC, n->nlmsg_flags&NLM_F_ECHO); | 784 | err = rtnetlink_send(skb, &init_net, pid, RTNLGRP_TC, n->nlmsg_flags&NLM_F_ECHO); |
785 | if (err > 0) | 785 | if (err > 0) |
786 | return 0; | 786 | return 0; |
787 | 787 | ||
@@ -844,7 +844,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event) | |||
844 | 844 | ||
845 | /* now do the delete */ | 845 | /* now do the delete */ |
846 | tcf_action_destroy(head, 0); | 846 | tcf_action_destroy(head, 0); |
847 | ret = rtnetlink_send(skb, pid, RTNLGRP_TC, | 847 | ret = rtnetlink_send(skb, &init_net, pid, RTNLGRP_TC, |
848 | n->nlmsg_flags&NLM_F_ECHO); | 848 | n->nlmsg_flags&NLM_F_ECHO); |
849 | if (ret > 0) | 849 | if (ret > 0) |
850 | return 0; | 850 | return 0; |
@@ -888,7 +888,7 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event, | |||
888 | nlh->nlmsg_len = skb_tail_pointer(skb) - b; | 888 | nlh->nlmsg_len = skb_tail_pointer(skb) - b; |
889 | NETLINK_CB(skb).dst_group = RTNLGRP_TC; | 889 | NETLINK_CB(skb).dst_group = RTNLGRP_TC; |
890 | 890 | ||
891 | err = rtnetlink_send(skb, pid, RTNLGRP_TC, flags&NLM_F_ECHO); | 891 | err = rtnetlink_send(skb, &init_net, pid, RTNLGRP_TC, flags&NLM_F_ECHO); |
892 | if (err > 0) | 892 | if (err > 0) |
893 | err = 0; | 893 | err = 0; |
894 | return err; | 894 | return err; |