]> 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)
commit2274da4f3f8d00117f63ab7bd8feced4e9b1bd8b
tree399c3cf96ae9b0dd4506cb1f3ca03a5458ce8a9a
parentd379961b40bcf4f0a604dbec8cf77fa6f8d3f6b5
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