Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 259e66bc authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe
Browse files

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Fixes: 3a6532c9 ("RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 08304d71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;