RDMA/umem: Fix missing mmap_sem in get umem ODP call
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 21 May 2017 16:08:09 +0000 (19:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:20:13 +0000 (17:20 -0400)
commit79bb5b7ee1776a244484a1be6671d89fbd7c0c9f
tree3671e82e4056918be2e57a1ec1df88d3607d35c4
parent53376fedb9da54c0d3b0bd3a6edcbeb681692909
RDMA/umem: Fix missing mmap_sem in get umem ODP call

Add mmap_sem lock around VMA inspection in ib_umem_odp_get().

Fixes: 0008b84ea9af ('IB/umem: Add support to huge ODP')
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem_odp.c