]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Get the address of interface correctly.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Sun, 28 Jan 2018 11:38:58 +0000 (03:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 19:32:31 +0000 (14:32 -0500)
commit47c5d0a501a00246181631325b84c6ce4d088220
treeeef7c45ed1adf85d124930e4447b15f361185a37
parentcb9ba5cb6e45d81c0c38f06ccb7d4328d9527f03
ipv4: Get the address of interface correctly.

When using ioctl to get address of interface, we can't
get it anymore. For example, the command is show as below.

# ifconfig eth0

In the patch ("59831cae1d848"), the devinet_ioctl does not
return a suitable value, even though we can find it in
the kernel. Then fix it now.

Fixes: 59831cae1d848 ("devinet_ioctl(): take copyin/copyout to caller")
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c