From 66070f08b2ff4f1ac37157e12ef47fca6ea44016 Mon Sep 17 00:00:00 2001 From: Roman Zhukov Date: Thu, 18 Jan 2018 07:32:56 +0000 Subject: [PATCH] net/sfc: fix flow RSS check in error handling RSS is a local variable with address which is never NULL. Fixes: d77d07391d4d ("net/sfc: support flow API RSS action") Cc: stable@dpdk.org Signed-off-by: Roman Zhukov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index 890b2bbf04..11ab892ee9 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b/drivers/net/sfc/sfc_flow.c @@ -999,7 +999,7 @@ fail_scale_tbl_set: fail_filter_insert: fail_scale_key_set: fail_scale_mode_set: - if (rss != NULL) + if (flow->rss) efx_rx_scale_context_free(sa->nic, spec->efs_rss_context); fail_scale_context_alloc: -- 2.20.1