aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r--net/sched/sch_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index fc8708a0a25e..c40773cdbe45 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -608,7 +608,7 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w)
608 608
609static int tc_get_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg) 609static int tc_get_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
610{ 610{
611 struct net *net = skb->sk->sk_net; 611 struct net *net = sock_net(skb->sk);
612 struct tcmsg *tcm = NLMSG_DATA(n); 612 struct tcmsg *tcm = NLMSG_DATA(n);
613 struct nlattr *tca[TCA_MAX + 1]; 613 struct nlattr *tca[TCA_MAX + 1];
614 struct net_device *dev; 614 struct net_device *dev;
@@ -677,7 +677,7 @@ static int tc_get_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
677 677
678static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg) 678static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
679{ 679{
680 struct net *net = skb->sk->sk_net; 680 struct net *net = sock_net(skb->sk);
681 struct tcmsg *tcm; 681 struct tcmsg *tcm;
682 struct nlattr *tca[TCA_MAX + 1]; 682 struct nlattr *tca[TCA_MAX + 1];
683 struct net_device *dev; 683 struct net_device *dev;
@@ -896,7 +896,7 @@ err_out:
896 896
897static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb) 897static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb)
898{ 898{
899 struct net *net = skb->sk->sk_net; 899 struct net *net = sock_net(skb->sk);
900 int idx, q_idx; 900 int idx, q_idx;
901 int s_idx, s_q_idx; 901 int s_idx, s_q_idx;
902 struct net_device *dev; 902 struct net_device *dev;
@@ -948,7 +948,7 @@ done:
948 948
949static int tc_ctl_tclass(struct sk_buff *skb, struct nlmsghdr *n, void *arg) 949static int tc_ctl_tclass(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
950{ 950{
951 struct net *net = skb->sk->sk_net; 951 struct net *net = sock_net(skb->sk);
952 struct tcmsg *tcm = NLMSG_DATA(n); 952 struct tcmsg *tcm = NLMSG_DATA(n);
953 struct nlattr *tca[TCA_MAX + 1]; 953 struct nlattr *tca[TCA_MAX + 1];
954 struct net_device *dev; 954 struct net_device *dev;
@@ -1142,7 +1142,7 @@ static int qdisc_class_dump(struct Qdisc *q, unsigned long cl, struct qdisc_walk
1142 1142
1143static int tc_dump_tclass(struct sk_buff *skb, struct netlink_callback *cb) 1143static int tc_dump_tclass(struct sk_buff *skb, struct netlink_callback *cb)
1144{ 1144{
1145 struct net *net = skb->sk->sk_net; 1145 struct net *net = sock_net(skb->sk);
1146 int t; 1146 int t;
1147 int s_t; 1147 int s_t;
1148 struct net_device *dev; 1148 struct net_device *dev;