diff options
author | Jiewei Ke <kejiewei.cn@gmail.com> | 2019-12-27 19:36:13 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-03 19:43:51 -0400 |
commit | 6ca18d8927d468c763571f78c9a7387a69ffa020 (patch) | |
tree | 88a108c01b03b980a66a4646e4333fa0ed7a9aba /drivers/infiniband/sw | |
parent | 2ab367a70a077818905c92c4cfc7c2bd6bc76a14 (diff) | |
download | linux-6ca18d8927d468c763571f78c9a7387a69ffa020.tar.bz2 |
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>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index 95834206c80c..92de39c4a7c1 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -408,7 +408,7 @@ struct rxe_dev { struct list_head pending_mmaps; spinlock_t mmap_offset_lock; /* guard mmap_offset */ - int mmap_offset; + u64 mmap_offset; atomic64_t stats_counters[RXE_NUM_OF_COUNTERS]; |