DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] net/iavf: fix resource leak issue
@ 2022-05-10  0:54 Wenjun Wu
  2022-05-11 11:46 ` Zhang, Qi Z
  0 siblings, 1 reply; 11+ messages in thread
From: Wenjun Wu @ 2022-05-10  0:54 UTC (permalink / raw)
  To: dev, jingjing.wu, beilei.xing, qi.z.zhang; +Cc: Wenjun Wu

This patch fixes resource leak issue reported by coverity.

Coverity issue: 378017
Fixes: b14e8a57b9fe ("net/iavf: support quanta size configuration")

Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
---
 drivers/net/iavf/iavf_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index d1a2b53675..82672841f4 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2188,7 +2188,8 @@ static int iavf_parse_devargs(struct rte_eth_dev *dev)
 	if (ad->devargs.quanta_size < 256 || ad->devargs.quanta_size > 4096 ||
 	    ad->devargs.quanta_size & 0x40) {
 		PMD_INIT_LOG(ERR, "invalid quanta size\n");
-		return -EINVAL;
+		ret = -EINVAL;
+		goto bail;
 	}
 
 bail:
-- 
2.25.1


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

end of thread, other threads:[~2022-05-18  4:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  0:54 [PATCH v1] net/iavf: fix resource leak issue Wenjun Wu
2022-05-11 11:46 ` Zhang, Qi Z
2022-05-11 14:52   ` Thomas Monjalon
2022-05-11 15:31     ` Zhang, Qi Z
2022-05-11 21:17       ` Thomas Monjalon
2022-05-12  0:20         ` Zhang, Qi Z
2022-05-12  7:06           ` Thomas Monjalon
2022-05-12  7:21             ` Zhang, Qi Z
2022-05-17  0:59               ` Zhang, Qi Z
2022-05-17  6:52                 ` Thomas Monjalon
2022-05-18  4:55                   ` Zhang, Qi Z

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).