git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b60795
)
examples/ip_pipeline: fix uninitialized link parameter
author
Fan Zhang
<roy.fan.zhang@intel.com>
Fri, 20 Apr 2018 14:39:21 +0000
(15:39 +0100)
committer
Cristian Dumitrescu
<cristian.dumitrescu@intel.com>
Tue, 8 May 2018 11:12:39 +0000
(13:12 +0200)
Coverity issue: 272575
Fixes:
133c2c6565d6
("examples/ip_pipeline: add link object")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/ip_pipeline/cli.c
patch
|
blob
|
history
diff --git
a/examples/ip_pipeline/cli.c
b/examples/ip_pipeline/cli.c
index
20fbefb
..
6aebae4
100644
(file)
--- a/
examples/ip_pipeline/cli.c
+++ b/
examples/ip_pipeline/cli.c
@@
-138,6
+138,8
@@
cmd_link(char **tokens,
struct link *link;
char *name;
+ memset(&p, 0, sizeof(p));
+
if ((n_tokens < 13) || (n_tokens > 14 + LINK_RXQ_RSS_MAX)) {
snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);
return;