From: Roman Zhukov Date: Thu, 18 Jan 2018 07:32:56 +0000 (+0000) Subject: net/sfc: fix flow RSS check in error handling X-Git-Tag: spdx-start~69 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=66070f08b2ff4f1ac37157e12ef47fca6ea44016;p=dpdk.git 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 --- 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: