compress/mlx5: fix double close of device context
authorMichael Baum <michaelba@nvidia.com>
Thu, 25 Nov 2021 08:18:29 +0000 (10:18 +0200)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 25 Nov 2021 10:16:56 +0000 (11:16 +0100)
commit80b32fa702049db33b4dee043b0c029b9b626231
tree8085e9555ad3e63903e0d825c5b7e0fbc9abb369
parent0fa4f444f6c5fa0882b9d135cc3583804618a889
compress/mlx5: fix double close of device context

The context of the device opens once in the common probe and closes with
its removal.

If the probe of one of the drivers fails, it releases its resources and
then the common closes the context.
But mistakenly in the compress probe, if there isn't enough capabilities
to support compress operations, it closes the device and then common
probe closes it again.

Remove the redundant closing from compress probe.

Fixes: 2efd26544554 ("compress/mlx5: support partial transformation")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/compress/mlx5/mlx5_compress.c