diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-10 23:20:49 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-21 02:31:33 +0200 |
commit | 8c2348e36af0da79477b0726781da297263269a4 (patch) | |
tree | 7531d2169816af383653297b7560a6be3d3eb7c5 /net/atm/resources.h | |
parent | batadv_socket_read(): get rid of pointless access_ok() (diff) | |
download | linux-8c2348e36af0da79477b0726781da297263269a4.tar.xz linux-8c2348e36af0da79477b0726781da297263269a4.zip |
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.h | 1 |
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); |