]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Destroy the DEVX object upon error flow
authorYishai Hadas <yishaih@mellanox.com>
Tue, 25 Sep 2018 09:11:12 +0000 (12:11 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 25 Sep 2018 20:49:17 +0000 (14:49 -0600)
commit63cbfc3aeecb686e64a346195cab2d3e11d7f5e0
treeac28653f1d42ad1de6a875455c34c97314fbe461
parent0fb64136eb9174c34c1e8e1b8e1a1604e6405e5c
IB/mlx5: Destroy the DEVX object upon error flow

Upon DEVX object creation the object must be destroyed upon a follows
error flow.

Fixes: 7d7243a82c28 ("IB/mlx5: Add obj create and destroy functionality")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c