RDMA/rxe: Fix error type of mmap_offset
authorJiewei Ke <kejiewei.cn@gmail.com>
Fri, 27 Dec 2019 11:36:13 +0000 (19:36 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 23:43:51 +0000 (19:43 -0400)
commit6ca18d8927d468c763571f78c9a7387a69ffa020
tree88a108c01b03b980a66a4646e4333fa0ed7a9aba
parent2ab367a70a077818905c92c4cfc7c2bd6bc76a14
RDMA/rxe: Fix error type of mmap_offset

The type of mmap_offset should be u64 instead of int to match the type of
mminfo.offset. If otherwise, after we create several thousands of CQs, it
will run into overflow issues.

Link: https://lore.kernel.org/r/20191227113613.5020-1-kejiewei.cn@gmail.com
Signed-off-by: Jiewei Ke <kejiewei.cn@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_verbs.h