]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:42 +0000 (08:36 +0100)
commitd1d92e97260ffc7d126f4fc0038a59eceebcae2b
tree811977c47a800cc6d481580930c30740d1ed08fa
parentc87c4d442b9f216ad9f67271075fdba33c817477
RDMA/rxe: Fix error type of mmap_offset

[ Upstream commit 6ca18d8927d468c763571f78c9a7387a69ffa020 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_verbs.h