RDMA: Use u64_to_user_ptr everywhere

This is already used in many places, get the rest of them too, only
to make the code a bit clearer & simpler.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Šī revīzija ir iekļauta:
Jason Gunthorpe
2018-03-27 14:18:47 -06:00
vecāks 5b2cc79de8
revīzija 6f57c933a4
6 mainīti faili ar 27 papildinājumiem un 27 dzēšanām

Parādīt failu

@@ -614,7 +614,7 @@ static ssize_t qib_diagpkt_write(struct file *fp,
}
if (copy_from_user(tmpbuf,
(const void __user *) (unsigned long) dp.data,
u64_to_user_ptr(dp.data),
dp.len)) {
ret = -EFAULT;
goto bail;