]> git.baikalelectronics.ru Git - kernel.git/commit
net: socket: simplify dev_ifconf handling
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Jul 2021 14:29:02 +0000 (16:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 13:20:25 +0000 (14:20 +0100)
commitf13b04afd1e673c35ec2e0e01d3028442cc46a17
tree399c3cf96ae9b0dd4506cb1f3ca03a5458ce8a9a
parent8e86a9c8c9d1a86ff2ee1f7306fa0a999bf3277b
net: socket: simplify dev_ifconf handling

The dev_ifconf() calling conventions make compat handling
more complicated than necessary, simplify this by moving
the in_compat_syscall() check into the function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev_ioctl.c
net/socket.c