diff options
Diffstat (limited to 'net/econet')
-rw-r--r-- | net/econet/af_econet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index f877f3b5c725..9938e76a8ff6 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c | |||
@@ -662,7 +662,7 @@ static int ec_dev_ioctl(struct socket *sock, unsigned int cmd, void __user *arg) | |||
662 | if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) | 662 | if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) |
663 | return -EFAULT; | 663 | return -EFAULT; |
664 | 664 | ||
665 | if ((dev = dev_get_by_name(ifr.ifr_name)) == NULL) | 665 | if ((dev = dev_get_by_name(&init_net, ifr.ifr_name)) == NULL) |
666 | return -ENODEV; | 666 | return -ENODEV; |
667 | 667 | ||
668 | sec = (struct sockaddr_ec *)&ifr.ifr_addr; | 668 | sec = (struct sockaddr_ec *)&ifr.ifr_addr; |