Skip to content

Commit 6ca18d8

Browse files
Jiewei Kejgunthorpe
authored andcommitted
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/[email protected] Signed-off-by: Jiewei Ke <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 2ab367a commit 6ca18d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/sw/rxe/rxe_verbs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ struct rxe_dev {
408408
struct list_head pending_mmaps;
409409

410410
spinlock_t mmap_offset_lock; /* guard mmap_offset */
411-
int mmap_offset;
411+
u64 mmap_offset;
412412

413413
atomic64_t stats_counters[RXE_NUM_OF_COUNTERS];
414414

0 commit comments

Comments
 (0)