mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok()
followed by copy_from_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5f599098f7
commit
c9a4bb4166
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user