aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-04-07 12:37:14 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-04-14 16:01:38 -0300
commit983653515849fb56b78ce55d349bb384d43030f6 (patch)
tree6bc003f78adca5660e0106dda8030f470e23e35f /drivers/infiniband/hw/mlx4
parentRDMA/cm: Fix missing RDMA_CM_EVENT_REJECTED event after receiving REJ message (diff)
downloadlinux-dev-983653515849fb56b78ce55d349bb384d43030f6.tar.xz
linux-dev-983653515849fb56b78ce55d349bb384d43030f6.zip
RDMA/cm: Fix an error check in cm_alloc_id_priv()
The xa_alloc_cyclic_irq() function returns either 0 or 1 on success and negatives on error. This code treats 1 as an error and returns ERR_PTR(1) which will cause an Oops in the caller. Fixes: ae78ff3a0f0c ("RDMA/cm: Convert local_id_table to XArray") Link: https://lore.kernel.org/r/20200407093714.GA80285@mwanda Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
0 files changed, 0 insertions, 0 deletions