summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_diag.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-03-27 14:18:47 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-03-29 13:42:29 -0600
commit6f57c933a49afb30d987f0ba7db4f52452f7d638 (patch)
tree9ac826827f71127f4a6ce58c59638a5be0afaa39 /drivers/infiniband/hw/qib/qib_diag.c
parent5b2cc79de8782ea98ef22cddb26fcd566c565094 (diff)
downloadblackbird-obmc-linux-6f57c933a49afb30d987f0ba7db4f52452f7d638.tar.gz
blackbird-obmc-linux-6f57c933a49afb30d987f0ba7db4f52452f7d638.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_diag.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_diag.c b/drivers/infiniband/hw/qib/qib_diag.c
index a9377eee8734..11da796dd1b7 100644
--- a/drivers/infiniband/hw/qib/qib_diag.c
+++ b/drivers/infiniband/hw/qib/qib_diag.c
@@ -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;
OpenPOWER on IntegriCloud