Skip to content

Commit c9a4bb4

Browse files
author
Al Viro
committed
drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok()
followed by copy_from_user() Signed-off-by: Al Viro <[email protected]>
1 parent 5f59909 commit c9a4bb4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/fpga/dfl-fme-pr.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ static int fme_pr(struct platform_device *pdev, unsigned long arg)
9797
return -EINVAL;
9898
}
9999

100-
if (!access_ok((void __user *)(unsigned long)port_pr.buffer_address,
101-
port_pr.buffer_size))
102-
return -EFAULT;
103-
104100
/*
105101
* align PR buffer per PR bandwidth, as HW ignores the extra padding
106102
* data automatically.

0 commit comments

Comments
 (0)