Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342063
b: refs/heads/master
c: 7c77ab2
h: refs/heads/master
i:
  342061: 844d2d5
  342059: a7857ce
  342055: 532e934
  342047: 644a3c9
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Dec 10, 2012
1 parent a2421a3 commit 8c10581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b9e75802f1c50bfeae53c86c0bfbc5c45fd8719
refs/heads/master: 7c77ab24e30bad7598b5cfda93be6f32ed439c2f
7 changes: 2 additions & 5 deletions trunk/net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,9 +1665,6 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if ((nlh->nlmsg_type == RTM_SETDCB) && !capable(CAP_NET_ADMIN))
return -EPERM;

if (!net_eq(net, &init_net))
return -EINVAL;

ret = nlmsg_parse(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX,
dcbnl_rtnl_policy);
if (ret < 0)
Expand All @@ -1684,7 +1681,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if (!tb[DCB_ATTR_IFNAME])
return -EINVAL;

netdev = dev_get_by_name(&init_net, nla_data(tb[DCB_ATTR_IFNAME]));
netdev = dev_get_by_name(net, nla_data(tb[DCB_ATTR_IFNAME]));
if (!netdev)
return -ENODEV;

Expand All @@ -1708,7 +1705,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)

nlmsg_end(reply_skb, reply_nlh);

ret = rtnl_unicast(reply_skb, &init_net, portid);
ret = rtnl_unicast(reply_skb, net, portid);
out:
dev_put(netdev);
return ret;
Expand Down

0 comments on commit 8c10581

Please sign in to comment.