]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Annotate uverbs_request_next_ptr() return value as a __user pointer
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Mar 2019 23:50:46 +0000 (16:50 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 13:22:48 +0000 (10:22 -0300)
commit1f75024464bff18437236324c1465ecd35bcc622
tree5c67e4475e63acc316e7b2c7ff9aaa1b0fc86780
parentd0ff589d533f168f255574f5ced6327ec9cd4faa
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: Leon Romanovsky <leonro@mellanox.com>
Fixes: 24d5ca5a8328 ("RDMA/uverbs: Use the iterator for ib_uverbs_unmarshall_recv()")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c