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)
commit7a5834e456f7fb3eca9b63af2a6bc7f460ae482f
treebe3d82e048e66a98770665154d346d105aa72da0
parent529254340c7f16d59b928e36568597c603bae917
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: 40909f664d27 ("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