diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-10-29 07:57:21 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-10-31 15:31:49 -0300 |
commit | 546d30099ed204792083f043cd7e016de86016a3 (patch) | |
tree | c912303ff562f4f5b5eca003c946cc7044ee5dc4 /drivers/infiniband/hw/mlx5/mlx5_ib.h | |
parent | RDMA/hns: Fix build error again (diff) | |
download | linux-dev-546d30099ed204792083f043cd7e016de86016a3.tar.xz linux-dev-546d30099ed204792083f043cd7e016de86016a3.zip |
RDMA/mlx5: Return proper error value
Returned value from mlx5_mr_cache_alloc() is checked to be error or real
pointer. Return proper error code instead of NULL which is not checked
later.
Fixes: 81713d3788d2 ("IB/mlx5: Add implicit MR support")
Link: https://lore.kernel.org/r/20191029055721.7192-1-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
0 files changed, 0 insertions, 0 deletions