[PATCH v3] net/mana: fix uninitialized scalar variable

2024-06-12 Thread Mahmoud Maatuq
From: mmaatuq in case we didn't enter or finished the loop without getting ifname we ret shouldn't have an arbitrary value. Coverity issue: 424690 Fixes: 84497839d9ca ("net/mana: support MTU update") Cc: lon...@microsoft.com Signed-off-by: mmaatuq --- v3: * add Fixes and Cc tags v2: * Fixed t

[PATCH v4] net/mana: fix uninitialized scalar variable

2024-06-13 Thread Mahmoud Maatuq
in case we didn't enter or finished the loop without getting ifname we ret shouldn't have an arbitrary value. Coverity issue: 424690 Fixes: 84497839d9ca ("net/mana: support MTU update") Cc: lon...@microsoft.com Signed-off-by: Mahmoud Maatuq --- v4: * used full name in the

[PATCH] net/mlx5: fix memleak for resource object

2024-06-23 Thread Mahmoud Maatuq
Coverity issue: 426424 Fixes: e78e5408da89 ("net/mlx5: remove cache term from the list utility") Cc: ma...@nvidia.com Signed-off-by: Mahmoud Maatuq --- drivers/net/mlx5/mlx5_flow_dv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_f

[PATCH] app/graph: fix destination buffer too small

2024-06-23 Thread Mahmoud Maatuq
as sizeof(config.rx.mempool_name) is < sizeof(res->mempool), it's safer to copy min size of them to avoide out of bound memory write. Coverity issue: 415430 Fixes: 3850cb06ab9c ("app/graph: add ethdev commands") Cc: sk...@marvell.com Signed-off-by: Mahmoud Maatuq --- a

[PATCH v2] net/mlx5: fix memleak for resource object

2024-06-24 Thread Mahmoud Maatuq
this makes sure that the allocated resource object is freed for all branches that return NULL Coverity issue: 426424 Fixes: 27d171b88031 ("net/mlx5: abstract flow action and enable reconfigure") Cc: mkash...@nvidia.com Signed-off-by: Mahmoud Maatuq --- drivers/net/mlx5/mlx5_flo

[PATCH v2] app/graph: fix destination buffer too small

2024-06-24 Thread Mahmoud Maatuq
vell.com Signed-off-by: Mahmoud Maatuq --- v2: * replaced memcpy with strlcpy --- app/graph/ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/graph/ethdev.c b/app/graph/ethdev.c index cfc1b18569..e7a02b40a9 100644 --- a/app/graph/ethdev.c +++ b/app/graph/ethdev.

[PATCH v3] net/mlx5: fix matcher object memory leak

2024-07-02 Thread Mahmoud Maatuq
This makes sure that the allocated matcher object is freed for all branches that return NULL. Coverity issue: 426424 Fixes: 27d171b88031 ("net/mlx5: abstract flow action and enable reconfigure") Cc: mkash...@nvidia.com Signed-off-by: Mahmoud Maatuq --- v3: * changed commit messag