diff options
author | Jason Gunthorpe <[email protected]> | 2020-11-24 19:34:33 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-11-26 15:49:04 -0400 |
commit | d0b7721c5e0d940a514fbff40b9d7bae92735f7a (patch) | |
tree | e98eebcea0b6826e52980eda9c6c67caa8c299e1 /net/lapb/lapb_subr.c | |
parent | 66d86e529dd58616495ea0b03cc687e5d6522b59 (diff) |
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: 878f7b31c3a7 ("RDMA/mlx5: Use ib_umem_find_best_pgsz() for devx")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: kernel test robot <[email protected]>
Acked-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions