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

Commit 2dcdebff authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe
Browse files

RDMA/uverbs: Annotate uverbs_request_next_ptr() return value as a __user pointer



This patch avoids that sparse complains about a mismatch between the
returned value and the function return type.

Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Fixes: c3bea3d2 ("RDMA/uverbs: Use the iterator for ib_uverbs_unmarshall_recv()")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 259e66bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ static const void __user *uverbs_request_next_ptr(struct uverbs_req_iter *iter,
	const void __user *res = iter->cur;

	if (iter->cur + len > iter->end)
		return ERR_PTR(-ENOSPC);
		return (void __force __user *)ERR_PTR(-ENOSPC);
	iter->cur += len;
	return res;
}