forked from luck/tmp_suning_uos_patched
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;
|
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
|
* align PR buffer per PR bandwidth, as HW ignores the extra padding
|
||||||
* data automatically.
|
* data automatically.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user