summaryrefslogtreecommitdiffstats
path: root/drivers/fpga
diff options
context:
space:
mode:
authorWu Hao <hao.wu@intel.com>2019-06-28 02:49:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 19:58:58 +0200
commit49ec630cd5e497c97c6a8a0fc4df5b2c88ca11c6 (patch)
tree6f0c2b911a76cd40dc40b665b64818dcdc53acb6 /drivers/fpga
parentfpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address. (diff)
downloadlinux-49ec630cd5e497c97c6a8a0fc4df5b2c88ca11c6.tar.xz
linux-49ec630cd5e497c97c6a8a0fc4df5b2c88ca11c6.zip
fpga: dfl: fme: remove copy_to_user() in ioctl for PR
This patch removes copy_to_user() code in partial reconfiguration ioctl, as it's useless as user never needs to read the data structure after ioctl. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Wu Hao <hao.wu@intel.com> Acked-by: Moritz Fischer <mdf@kernel.org> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Moritz Fischer <mdf@kernel.org> Link: https://lore.kernel.org/r/20190628004951.6202-3-mdf@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/dfl-fme-pr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c
index d9ca9554844a..6ec0f09e5994 100644
--- a/drivers/fpga/dfl-fme-pr.c
+++ b/drivers/fpga/dfl-fme-pr.c
@@ -159,9 +159,6 @@ unlock_exit:
mutex_unlock(&pdata->lock);
free_exit:
vfree(buf);
- if (copy_to_user((void __user *)arg, &port_pr, minsz))
- return -EFAULT;
-
return ret;
}