]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Flow through a more detailed return code from get_prefetchable_mr()
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 3 Sep 2021 08:48:15 +0000 (16:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 1 Oct 2021 14:40:07 +0000 (11:40 -0300)
commit6a0956c3f048bc17d417a139c9719511e7fc7325
tree6f65f86dcbda6c770559520972581b2af9e8a81b
parent31db7d4589aa9315525514e9d854ea9a781064aa
IB/mlx5: Flow through a more detailed return code from get_prefetchable_mr()

The error returns for various cases detected by get_prefetchable_mr() get
confused as it flows back to userspace. Properly label each error path and
flow the error code properly back to the system call.

Link: https://lore.kernel.org/r/20210928170846.GA1721590@nvidia.com
Suggested-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/odp.c