numam-dpdk/drivers/net/mlx5
Dekel Peled 9e44476448 net/mlx5: fix memory free on queue create error
In function mlx5_rxq_ibv_new(), pointer *tmpl allocation is attempted
at the start, but not validated or freed in case of error.
In function mlx5_txq_ibv_new(), pointer *txq_ibv allocation is
attempted at the start, but not freed in case of error.

This patch adds pointers initialization, validation and freeing.

Fixes: 09cb5b5817 ("net/mlx5: separate DPDK from verbs Rx queue objects")
Fixes: faf2667fe8 ("net/mlx5: separate DPDK from verbs Tx queue objects")
Cc: stable@dpdk.org

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
2019-05-27 10:21:04 +02:00
..
Makefile net/mlx5: fix Direct Rules API 2019-05-03 18:45:23 +02:00
meson.build net/mlx5: fix Direct Rules API 2019-05-03 18:45:23 +02:00
mlx5_defs.h net/mlx5: fix max number of queues for NEON Tx 2019-05-03 18:45:23 +02:00
mlx5_devx_cmds.c net/mlx5: support Direct Rules E-Switch 2019-04-19 14:51:55 +02:00
mlx5_ethdev.c net/mlx5: fix device removal handler for multiport 2019-05-12 13:45:57 +02:00
mlx5_flow_dv.c net/mlx5: remove redundant size calculation macro 2019-05-27 10:20:55 +02:00
mlx5_flow_tcf.c net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
mlx5_flow_verbs.c net: add rte prefix to IP defines 2019-05-24 13:34:46 +02:00
mlx5_flow.c net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
mlx5_flow.h net/mlx5: fix modification action flags 2019-05-03 18:45:23 +02:00
mlx5_glue.c net/mlx5: fix errno for unsupported Direct Rules 2019-05-08 17:29:31 +02:00
mlx5_glue.h net/mlx5: fix Direct Rules API 2019-05-03 18:45:23 +02:00
mlx5_mac.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_mp.c net/mlx5: enable secondary process to register DMA memory 2019-04-05 17:45:22 +02:00
mlx5_mr.c net/mlx5: update memory event callback for shared context 2019-05-03 18:45:23 +02:00
mlx5_mr.h net/mlx5: share Memory Regions for multiport device 2019-05-03 18:45:23 +02:00
mlx5_nl.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_prm.h net/mlx5: remove redundant size calculation macro 2019-05-27 10:20:55 +02:00
mlx5_rss.c net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx5_rxmode.c net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx5_rxq.c net/mlx5: fix memory free on queue create error 2019-05-27 10:21:04 +02:00
mlx5_rxtx_vec_neon.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_rxtx_vec_sse.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_rxtx_vec.c net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx5_rxtx_vec.h net/mlx5: revert mbuf address calculation for x86 2019-04-05 17:45:22 +02:00
mlx5_rxtx.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_rxtx.h net/mlx5: move locally used functions to static 2019-05-24 14:56:36 +02:00
mlx5_stats.c net/mlx5: remove redundant queue index 2019-04-12 11:02:02 +02:00
mlx5_trigger.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5_txq.c net/mlx5: fix memory free on queue create error 2019-05-27 10:21:04 +02:00
mlx5_utils.h net/mlx5: fix build on PPC64 2018-11-14 00:35:53 +01:00
mlx5_vlan.c net/mlx5: fix recursive inclusion of header file 2019-04-12 11:02:02 +02:00
mlx5.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx5.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00