aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_main.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-03-27 16:50:45 -0700
committerJason Gunthorpe <jgg@mellanox.com>2019-03-28 10:22:48 -0300
commit259e66bcdff59b5d92b8f43e42237aaea2c4d457 (patch)
tree5c2f1156678759d790377f652cbb33cc2fe8149f /drivers/infiniband/core/uverbs_main.c
parentIB/rxe: Replace av->network_type with skb->protocol (diff)
downloadlinux-dev-259e66bcdff59b5d92b8f43e42237aaea2c4d457.tar.xz
linux-dev-259e66bcdff59b5d92b8f43e42237aaea2c4d457.zip
RDMA/uverbs: Add a __user annotation to a pointer
This patch avoids that sparse and smatch report the following: warning: cast removes address space of expression Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Fixes: 3a6532c9af1a ("RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/core/uverbs_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 70b7d80431a9..b8fc5a329e21 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -720,7 +720,7 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
* then the command request structure starts
* with a '__aligned u64 response' member.
*/
- ret = get_user(response, (const u64 *)buf);
+ ret = get_user(response, (const u64 __user *)buf);
if (ret)
goto out_unlock;