aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/iphase.c
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-05-15 08:42:48 +0800
committerDavid S. Miller <davem@davemloft.net>2019-05-16 12:08:28 -0700
commit55c0dd8adda8f25a0bdc7b58a2dbe70b59a3dfbe (patch)
tree86869c102467cb1000f7290711dc0364df266219 /drivers/atm/iphase.c
parentMerge branch 'flow_offload-fix-CVLAN-support' (diff)
downloadlinux-dev-55c0dd8adda8f25a0bdc7b58a2dbe70b59a3dfbe.tar.xz
linux-dev-55c0dd8adda8f25a0bdc7b58a2dbe70b59a3dfbe.zip
atm: iphase: Avoid copying pointers to user space.
Remove the MEMDUMP_DEV case in ia_ioctl to avoid copy pointers to user space. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/atm/iphase.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index 5278c57dce73..302cf0ba1600 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -2767,12 +2767,6 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg)
case MEMDUMP:
{
switch (ia_cmds.sub_cmd) {
- case MEMDUMP_DEV:
- if (!capable(CAP_NET_ADMIN)) return -EPERM;
- if (copy_to_user(ia_cmds.buf, iadev, sizeof(IADEV)))
- return -EFAULT;
- ia_cmds.status = 0;
- break;
case MEMDUMP_SEGREG:
if (!capable(CAP_NET_ADMIN)) return -EPERM;
tmps = (u16 __user *)ia_cmds.buf;