]> git.baikalelectronics.ru Git - kernel.git/commit
net: socket: return changed ifreq from SIOCDEVPRIVATE
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jul 2021 13:45:15 +0000 (15:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:11:45 +0000 (20:11 +0100)
commitb220a181bba559b0caa60414564dea318278e8dd
treee28612f0cf560893e4b6dd170d5dd8d131308016
parentf0c95d91af11e044e0746c50b27e0e769b7602ba
net: socket: return changed ifreq from SIOCDEVPRIVATE

Some drivers that use SIOCDEVPRIVATE ioctl commands modify
the ifreq structure and expect it to be passed back to user
space, which has never really happened for compat mode
because the calling these drivers through ndo_do_ioctl
requires overwriting the ifr_data pointer.

Now that all drivers are converted to ndo_siocdevprivate,
change it to handle this correctly in both compat and
native mode.

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