compat_ioctl: move PPPIOCSCOMPRESS to ppp_generic
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Apr 2019 04:31:54 +0000 (00:31 -0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:47 +0000 (17:23 +0200)
commit5b6c02df50fb28d23c733a24df5a06d0a3f28b93
treee884fa09e2484c59c994d197f8e513c5d97cf570
parent3e859adf3643c2da9765cd5088170738d7918567
compat_ioctl: move PPPIOCSCOMPRESS to ppp_generic

Rather than using a compat_alloc_user_space() buffer, moving
this next to the native handler allows sharing most of
the code, leaving only the user copy portion distinct.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: netdev@vger.kernel.org
Cc: linux-ppp@vger.kernel.org
Cc: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/net/ppp/ppp_generic.c
fs/compat_ioctl.c