OSDN Git Service

compat_ioctl: unify copy-in of ppp filters
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Apr 2019 03:48:01 +0000 (23:48 -0400)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:47 +0000 (17:23 +0200)
commit3e859adf3643c2da9765cd5088170738d7918567
treef02f02cb59f2aeebbf6e8ea9b3445d2a5ae3d532
parentb7aff093e94daff1e6076393ed43b7c9651b2b43
compat_ioctl: unify copy-in of ppp filters

Now that isdn4linux is gone, the is only one implementation of PPPIOCSPASS
and PPPIOCSACTIVE in ppp_generic.c, so this is where the compat_ioctl
support should be implemented.

The two commands are implemented in very similar ways, so introduce
new helpers to allow sharing between the two and between native and
compat mode.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[arnd: rebased, and added changelog text]
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