Loading net/decnet/dn_dev.c +3 −5 Original line number Diff line number Diff line Loading @@ -462,7 +462,9 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) switch (cmd) { case SIOCGIFADDR: *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; goto rarok; if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) ret = -EFAULT; break; case SIOCSIFADDR: if (!ifa) { Loading @@ -485,10 +487,6 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) rtnl_unlock(); return ret; rarok: if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) ret = -EFAULT; goto done; } struct net_device *dn_dev_get_default(void) Loading Loading
net/decnet/dn_dev.c +3 −5 Original line number Diff line number Diff line Loading @@ -462,7 +462,9 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) switch (cmd) { case SIOCGIFADDR: *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; goto rarok; if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) ret = -EFAULT; break; case SIOCSIFADDR: if (!ifa) { Loading @@ -485,10 +487,6 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) rtnl_unlock(); return ret; rarok: if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) ret = -EFAULT; goto done; } struct net_device *dn_dev_get_default(void) Loading