diff options
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d76f8d8d5eba..bcf8c8a4a3ad 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -795,7 +795,7 @@ int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
795 | case SIOCADDRT: | 795 | case SIOCADDRT: |
796 | case SIOCDELRT: | 796 | case SIOCDELRT: |
797 | case SIOCRTMSG: | 797 | case SIOCRTMSG: |
798 | err = ip_rt_ioctl(cmd, (void __user *)arg); | 798 | err = ip_rt_ioctl(sk->sk_net, cmd, (void __user *)arg); |
799 | break; | 799 | break; |
800 | case SIOCDARP: | 800 | case SIOCDARP: |
801 | case SIOCGARP: | 801 | case SIOCGARP: |