diff options
Diffstat (limited to 'net/x25/x25_route.c')
-rw-r--r-- | net/x25/x25_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index 060fcfaa2f47..86b5b4da097c 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c | |||
@@ -129,7 +129,7 @@ void x25_route_device_down(struct net_device *dev) | |||
129 | */ | 129 | */ |
130 | struct net_device *x25_dev_get(char *devname) | 130 | struct net_device *x25_dev_get(char *devname) |
131 | { | 131 | { |
132 | struct net_device *dev = dev_get_by_name(devname); | 132 | struct net_device *dev = dev_get_by_name(&init_net, devname); |
133 | 133 | ||
134 | if (dev && | 134 | if (dev && |
135 | (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 | 135 | (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 |