]> git.baikalelectronics.ru Git - kernel.git/commit
kill dev_ifsioc()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Sep 2017 23:31:15 +0000 (19:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Jan 2018 00:13:45 +0000 (19:13 -0500)
commit343632d0403b7c4a9040e8f838a229c882aee5b7
treecea62cbe494ab18cc187f590aefe66f3914abfba
parent5f41449acab7576944f0b838fa3ee492f1a63ba0
kill dev_ifsioc()

Once upon a time net/socket.c:dev_ifsioc() used to handle SIOCSHWTSTAMP and
SIOCSIFMAP.  These have different native and compat layout, so the format
conversion had been needed.  In 2009 these two cases had been taken out,
turning the rest into a convoluted way to calling sock_do_ioctl().  We copy
compat structure into native one, call sock_do_ioctl() on that and copy
the result back for the in/out ioctls.  No layout transformation anywhere,
so we might as well just call sock_do_ioctl() and skip all the headache with
copying.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/socket.c