]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfcbc39646a03d6d74ec175748b48ac1be62e1602
treef02f02cb59f2aeebbf6e8ea9b3445d2a5ae3d532
parent97b2c978dbafb534d036790793b473dd85663853
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