[dpdk-dev] example/ip_pipeline: fix logically deadnode defect
Commit Message
Coverity issue: 107109
Fixes: 7122d30131ad ("examples/ip_pipeline: rework flow classification pipeline")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
examples/ip_pipeline/pipeline/pipeline_flow_classification.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Fan Zhang
> Sent: Friday, December 11, 2015 11:29 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] example/ip_pipeline: fix logically deadnode
> defect
>
> Coverity issue: 107109
> Fixes: 7122d30131ad ("examples/ip_pipeline: rework flow classification
> pipeline")
>
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
@@ -448,7 +448,7 @@ app_pipeline_fc_add_bulk(struct app_params *app,
flow_rsp = rte_malloc(NULL,
n_keys * sizeof(struct pipeline_fc_add_bulk_flow_rsp),
RTE_CACHE_LINE_SIZE);
- if (flow_req == NULL) {
+ if (flow_rsp == NULL) {
rte_free(flow_req);
rte_free(new_flow);
rte_free(signature);