linux/drivers/infiniband
Jason Gunthorpe d0b7721c5e RDMA/mlx5: Check for ERR_PTR from uverbs_zalloc()
The return code from uverbs_zalloc() was wrongly checked, it is ERR_PTR
not NULL like other allocators:

drivers/infiniband/hw/mlx5/devx.c:2110 devx_umem_reg_cmd_alloc() warn: passing zero to 'PTR_ERR'

Fixes: 878f7b31c3 ("RDMA/mlx5: Use ib_umem_find_best_pgsz() for devx")
Link: https://lore.kernel.org/r/0-v1-4d05ccc1c223+173-devx_err_ptr_jgg@nvidia.com
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-11-26 15:49:04 -04:00
..
core RDMA/cma: Fix deadlock on &lock in rdma_cma_listen_on_all() error unwind 2020-11-25 11:07:01 -04:00
hw RDMA/mlx5: Check for ERR_PTR from uverbs_zalloc() 2020-11-26 15:49:04 -04:00
sw RDMA/siw,rxe: Make emulated devices virtual in the device tree 2020-11-23 16:14:31 -04:00
ulp RDMA/ipoib: Distribute cq completion vector better 2020-11-20 16:18:59 -04:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00