diff options
Diffstat (limited to 'drivers/net/shaper.c')
-rw-r--r-- | drivers/net/shaper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/shaper.c b/drivers/net/shaper.c index 4c3d98ff4cd4..3773b3858bd4 100644 --- a/drivers/net/shaper.c +++ b/drivers/net/shaper.c | |||
@@ -86,6 +86,7 @@ | |||
86 | 86 | ||
87 | #include <net/dst.h> | 87 | #include <net/dst.h> |
88 | #include <net/arp.h> | 88 | #include <net/arp.h> |
89 | #include <net/net_namespace.h> | ||
89 | 90 | ||
90 | struct shaper_cb { | 91 | struct shaper_cb { |
91 | unsigned long shapeclock; /* Time it should go out */ | 92 | unsigned long shapeclock; /* Time it should go out */ |
@@ -488,7 +489,7 @@ static int shaper_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
488 | { | 489 | { |
489 | case SHAPER_SET_DEV: | 490 | case SHAPER_SET_DEV: |
490 | { | 491 | { |
491 | struct net_device *them=__dev_get_by_name(ss->ss_name); | 492 | struct net_device *them=__dev_get_by_name(&init_net, ss->ss_name); |
492 | if(them==NULL) | 493 | if(them==NULL) |
493 | return -ENODEV; | 494 | return -ENODEV; |
494 | if(sh->dev) | 495 | if(sh->dev) |