atm: separate ATM_GETNAMES handling from the rest of atm_dev_ioctl()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 May 2020 21:20:49 +0000 (17:20 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:33 +0000 (20:31 -0400)
commit8c2348e36af0da79477b0726781da297263269a4
tree7531d2169816af383653297b7560a6be3d3eb7c5
parent38c53ca3c114fa2a7030f0d1f54feaf044957609
atm: separate ATM_GETNAMES handling from the rest of atm_dev_ioctl()

atm_dev_ioctl() does copyin in two different ways - one for
ATM_GETNAMES, another for everything else.  Start with separating
the former into a new helper (atm_getnames()).  The next step
will be to lift the copyin into the callers.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/atm/ioctl.c
net/atm/resources.c
net/atm/resources.h