numam-dpdk/drivers/common
Michael Baum dffae63d3c common/mlx5: fix resource cleaning in device removal
The common remove function call in a loop to remove function for each
driver which have been registered.

If all removes are succeeded, it return 0 without to free the device
which allocated in probe function. Otherwise, it free the device.
In fact we expect exactly the opposite behavior. If all removes are
failed, it returns error without freeing the device which allocated in
probe function. Otherwise, it free the device and return 0.

Replace it with the correct behavior.

Fixes: 8a41f4decc ("common/mlx5: introduce layer for multiple class drivers")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-09-20 23:22:10 +02:00
..
cnxk common/cnxk: align NPA stack to ROC cache line size 2021-09-21 11:08:55 +02:00
cpt common/cpt: rework pending queue 2021-09-28 08:43:57 +02:00
dpaax common/dpaax/caamflib: fix IV for short MAC-I in SNOW3G 2021-09-08 12:10:43 +02:00
iavf common/iavf: update base driver version 2021-09-13 02:47:33 +02:00
mlx5 common/mlx5: fix resource cleaning in device removal 2021-09-20 23:22:10 +02:00
mvep drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
octeontx drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
octeontx2 common/octeontx2: send link event to VF 2021-06-30 04:25:21 +02:00
qat version: 21.11-rc0 2021-08-17 08:37:52 +02:00
sfc_efx drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00