RDMA/mlx5: Remove MAYEXEC flag
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 6 May 2019 07:45:56 +0000 (10:45 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 15:56:55 +0000 (12:56 -0300)
MAYEXEC flag was mistakenly added in the commit cited in the fixes line.

Fixes: 4eb6ab13b991 ("RDMA: Remove rdma_user_mmap_page")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c

index f9def2d..687f991 100644 (file)
@@ -2073,7 +2073,7 @@ static int mlx5_ib_mmap_clock_info_page(struct mlx5_ib_dev *dev,
 
        if (vma->vm_flags & (VM_WRITE | VM_EXEC))
                return -EPERM;
-       vma->vm_flags &= ~(VM_MAYWRITE | VM_MAYEXEC);
+       vma->vm_flags &= ~VM_MAYWRITE;
 
        if (!dev->mdev->clock_info)
                return -EOPNOTSUPP;