summaryrefslogtreecommitdiff
path: root/net/atm/resources.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-05-10 17:20:49 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-20 20:31:33 -0400
commit8c2348e36af0da79477b0726781da297263269a4 (patch)
tree7531d2169816af383653297b7560a6be3d3eb7c5 /net/atm/resources.h
parent38c53ca3c114fa2a7030f0d1f54feaf044957609 (diff)
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>
Diffstat (limited to 'net/atm/resources.h')
-rw-r--r--net/atm/resources.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/atm/resources.h b/net/atm/resources.h
index 048232e4d4c6..18f8e5948ce4 100644
--- a/net/atm/resources.h
+++ b/net/atm/resources.h
@@ -14,6 +14,7 @@
extern struct list_head atm_devs;
extern struct mutex atm_dev_mutex;
+int atm_getnames(void __user *arg, int compat);
int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat);