]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc232eb45d170cdf942dec9db8e1b1d125a4b9b6d
tree3671e82e4056918be2e57a1ec1df88d3607d35c4
parent6d2ec69f2166216935d91a1c60004e8c29627c0c
RDMA/umem: Fix missing mmap_sem in get umem ODP call

Add mmap_sem lock around VMA inspection in ib_umem_odp_get().

Fixes: 22dd6695f796 ('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