patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH 19.11] net/bnxt: fix a typo introduced in backport
@ 2022-03-25  8:16 Kalesh A P
  2022-03-28  6:28 ` Christian Ehrhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Kalesh A P @ 2022-03-25  8:16 UTC (permalink / raw)
  To: stable; +Cc: christian.ehrhardt, ajit.khaparde

From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>

This patch fixes a typo introduced in the last backport.
Fixed a wrong check.

Upstream code does not have this issue.

Bugzilla ID: 977
Fixes: 942eb8e842fc ("net/bnxt: fix xstats names query overrun")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
---
 drivers/net/bnxt/bnxt_stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c
index 39fd100..bc181db 100644
--- a/drivers/net/bnxt/bnxt_stats.c
+++ b/drivers/net/bnxt/bnxt_stats.c
@@ -612,7 +612,7 @@ int bnxt_dev_xstats_get_names_op(__rte_unused struct rte_eth_dev *eth_dev,
 	if (rc)
 		return rc;
 
-	if (xstats_names != NULL || size < stat_cnt)
+	if (xstats_names == NULL || size < stat_cnt)
 		return stat_cnt;
 
 	for (i = 0; i < RTE_DIM(bnxt_rx_stats_strings); i++) {
-- 
2.10.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-28 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25  8:16 [PATCH 19.11] net/bnxt: fix a typo introduced in backport Kalesh A P
2022-03-28  6:28 ` Christian Ehrhardt
2022-03-28 13:46   ` Ajit Khaparde
2022-03-28 14:29     ` Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).