From: Al Viro Date: Thu, 23 Apr 2020 03:05:57 +0000 (-0400) Subject: drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9a4bb416676dc1d67acc7fed51f77d8b371ab51;p=linux.git drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok() followed by copy_from_user() Signed-off-by: Al Viro --- diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c index a233a53db7081..1194c0e850e07 100644 --- a/drivers/fpga/dfl-fme-pr.c +++ b/drivers/fpga/dfl-fme-pr.c @@ -97,10 +97,6 @@ static int fme_pr(struct platform_device *pdev, unsigned long arg) return -EINVAL; } - if (!access_ok((void __user *)(unsigned long)port_pr.buffer_address, - port_pr.buffer_size)) - return -EFAULT; - /* * align PR buffer per PR bandwidth, as HW ignores the extra padding * data automatically.