]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/efa: Handle mmap insertions overflow
authorGal Pressman <galpress@amazon.com>
Tue, 18 Jun 2019 13:07:32 +0000 (16:07 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jun 2019 20:27:24 +0000 (16:27 -0400)
commite863c02832aa96f7c94ad89621d06e32176d5077
treebe3d82e048e66a98770665154d346d105aa72da0
parent5074bb6eb6841a4f0df659f22dc517f6b16ee7fd
RDMA/efa: Handle mmap insertions overflow

When inserting a new mmap entry to the xarray we should check for
'mmap_page' overflow as it is limited to 32 bits.

Fixes: 1d3734ebd6cc ("RDMA/efa: Add EFA verbs implementation")
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/efa/efa_verbs.c