summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl-fme-pr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fpga/dfl-fme-pr.c')
-rw-r--r--drivers/fpga/dfl-fme-pr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c
index fe5a5578fbf7..d9ca9554844a 100644
--- a/drivers/fpga/dfl-fme-pr.c
+++ b/drivers/fpga/dfl-fme-pr.c
@@ -99,8 +99,7 @@ static int fme_pr(struct platform_device *pdev, unsigned long arg)
return -EINVAL;
}
- if (!access_ok(VERIFY_READ,
- (void __user *)(unsigned long)port_pr.buffer_address,
+ if (!access_ok((void __user *)(unsigned long)port_pr.buffer_address,
port_pr.buffer_size))
return -EFAULT;