linux-uconsole/drivers/infiniband/hw
Leon Romanovsky d872c9fcea RDMA/mlx5: Return proper error value
commit 546d30099e upstream.

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: 81713d3788 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:47:02 +01:00
..
bnxt_re RDMA/bnxt_re: Fix Send Work Entry state check while polling completions 2020-01-17 19:46:59 +01:00
cxgb3 RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
cxgb4 iw_cxgb4: only reconnect with MPAv1 if the peer aborts 2019-12-13 08:51:32 +01:00
hfi1 IB/hfi1: Close VNIC sdma_progress sleep window 2019-12-13 08:52:31 +01:00
hns RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN 2019-12-13 08:51:01 +01:00
i40iw RDMA/i40iw: Fix incorrect iterator type 2019-11-20 18:46:59 +01:00
mlx4 IB/mlx4: Follow mirror sequence of device add during device removal 2020-01-09 10:18:58 +01:00
mlx5 RDMA/mlx5: Return proper error value 2020-01-17 19:47:02 +01:00
mthca IB/mthca: Fix error return code in __mthca_init_one() 2019-11-24 08:20:01 +01:00
nes RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
ocrdma RDMA: Directly cast the sockaddr union to sockaddr 2019-07-03 13:14:49 +02:00
qedr RDMA/qedr: Fix memory leak in user qp and mr 2019-12-31 16:35:29 +01:00
qib RDMA/qib: Validate ->show()/store() callbacks before calling them 2019-12-13 08:52:50 +01:00
usnic IB/usnic: Fix potential deadlock 2019-01-26 09:32:42 +01:00
vmw_pvrdma RDMA/vmw_pvrdma: Use atomic memory allocation in create AH 2019-12-05 09:20:01 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00