Skip to content
Commit 1a0ea3b8 authored by Jiewei Ke's avatar Jiewei Ke Committed by Greg Kroah-Hartman
Browse files

RDMA/rxe: Fix error type of mmap_offset

[ Upstream commit 6ca18d89 ]

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: default avatarJiewei Ke <kejiewei.cn@gmail.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 14e84357
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment