Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122845
b: refs/heads/master
c: 5f2f6da
h: refs/heads/master
i:
  122843: 8db7d41
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 23, 2008
1 parent f7a75e2 commit f882ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: d3d317092b58a6df1d31a4ca90cdb9d2bd4ebffa
refs/heads/master: 5f2f6da76c429c42d54f73807f00b8fd761a7d68
4 changes: 3 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3745,11 +3745,13 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
{
int err;
struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name);
const struct net_device_ops *ops = dev->netdev_ops;
const struct net_device_ops *ops;

if (!dev)
return -ENODEV;

ops = dev->netdev_ops;

switch (cmd) {
case SIOCSIFFLAGS: /* Set interface flags */
return dev_change_flags(dev, ifr->ifr_flags);
Expand Down

0 comments on commit f882ad3

Please sign in to comment.