* [PATCH] net/hnic3: fix possible uninitialized return value
@ 2026-07-23 17:59 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2026-07-23 17:59 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger, stable, Feifei Wang, Xin Wang, Yi Chen
The code to enable fdir filter assumes entry is present.
If not found it would return uninitialized value.
Bugzilla ID: 1964
Fixes: efa3b9b36fc7 ("net/hinic3: add flow control and filters")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/hinic3/hinic3_fdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hinic3/hinic3_fdir.c b/drivers/net/hinic3/hinic3_fdir.c
index 37a4f0cf52..71d50a3d22 100644
--- a/drivers/net/hinic3/hinic3_fdir.c
+++ b/drivers/net/hinic3/hinic3_fdir.c
@@ -1275,7 +1275,7 @@ hinic3_enable_rxq_fdir_filter(struct rte_eth_dev *dev, uint32_t queue_id, uint32
struct hinic3_nic_dev *nic_dev = HINIC3_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
struct hinic3_tcam_filter *it;
struct hinic3_tcam_cfg_rule fdir_tcam_rule;
- int ret;
+ int ret = -EINVAL;
uint32_t queue_res;
uint16_t index;
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-23 17:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 17:59 [PATCH] net/hnic3: fix possible uninitialized return value Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox