linux-stable/drivers/infiniband
Mark Bloch 0ed24039e2 RDMA/mlx5: Fix memory leak in case we fail to add an IB device
[ Upstream commit fc9e4477f9 ]

Make sure the IB device is freed on failure.

Fixes: b5ca15ad7e ("IB/mlx5: Add proper representors support")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:22 +01:00
..
core RDMA/cma: add missed unregister_pernet_subsys in init failure 2020-01-09 10:18:56 +01:00
hw RDMA/mlx5: Fix memory leak in case we fail to add an IB device 2020-01-27 14:50:22 +01:00
sw IB/rxe: Fix incorrect cache cleanup in error flow 2020-01-27 14:50:04 +01:00
ulp IB/iser: Pass the correct number of entries for dma mapped SGL 2020-01-27 14:50:14 +01:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile