* [PATCH] ethdev: fix coverity issue
@ 2024-02-27 19:38 Harman Kalra
2024-02-28 16:36 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Harman Kalra @ 2024-02-27 19:38 UTC (permalink / raw)
To: john.mcnamara, Thomas Monjalon, Ferruh Yigit, Andrew Rybchenko
Cc: dev, Harman Kalra
Fixing uninitialized value access.
Coverity issue: 414934
Fixes: 9a9eb104edf6 ("ethdev: parse multiple representor devargs")
Signed-off-by: Harman Kalra <hkalra@marvell.com>
---
lib/ethdev/ethdev_driver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/ethdev/ethdev_driver.c b/lib/ethdev/ethdev_driver.c
index aecb407c05..1660dd3f2a 100644
--- a/lib/ethdev/ethdev_driver.c
+++ b/lib/ethdev/ethdev_driver.c
@@ -546,6 +546,7 @@ eth_dev_tokenise_representor_list(char *p_val, struct rte_eth_devargs *eth_devar
}
memset(str, 0, BUFSIZ);
+ memset(da_val, 0, BUFSIZ);
/* Remove the exterior [] of the consolidated list */
strncpy(str, &p_val[1], len - 2);
while (1) {
--
2.18.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ethdev: fix coverity issue
2024-02-27 19:38 [PATCH] ethdev: fix coverity issue Harman Kalra
@ 2024-02-28 16:36 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2024-02-28 16:36 UTC (permalink / raw)
To: Harman Kalra, john.mcnamara, Thomas Monjalon, Andrew Rybchenko; +Cc: dev
On 2/27/2024 7:38 PM, Harman Kalra wrote:
> Fixing uninitialized value access.
>
> Coverity issue: 414934
> Fixes: 9a9eb104edf6 ("ethdev: parse multiple representor devargs")
>
> Signed-off-by: Harman Kalra <hkalra@marvell.com>
>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-28 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 19:38 [PATCH] ethdev: fix coverity issue Harman Kalra
2024-02-28 16:36 ` Ferruh Yigit
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).