]> git.itanic.dy.fi Git - linux-stable/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)
commite8ef090a614292db01b5956a6f5467afbe6c5cf7
treeac28653f1d42ad1de6a875455c34c97314fbe461
parenta9360abd3de0aad745d25d003923d56afb28a04b
IB/mlx5: Destroy the DEVX object upon error flow

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

Fixes: 7efce3691d33 ("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