]> git.baikalelectronics.ru Git - kernel.git/commit
net, compat_ioctl: handle more ioctls correctly
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Nov 2009 08:09:09 +0000 (08:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 07:11:15 +0000 (23:11 -0800)
commitf0ce533df20ba493fb7b1600e8eb6d63c5e9e27e
tree7bc6d106d4ef26d8012346f74ae0fdbe7ebdf1d3
parent216410b104a7a8a7d1752ddc8cd8552c562a8d40
net, compat_ioctl: handle more ioctls correctly

The MII ioctls and SIOCSIFNAME need to go through ifsioc conversion,
which they never did so far. Some others are not implemented in the
native path, so we can just return -EINVAL directly.

Add IFSLAVE ioctls to the EINVAL list and move it to the end to
optimize the code path for the common case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c