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:
bc10f22
)
net/ark: fix return value of null not checked
author
John Miller
<john.miller@atomicrules.com>
Tue, 16 May 2017 16:14:18 +0000
(12:14 -0400)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:25 +0000
(10:41 +0100)
Coverity issue: 144517
Fixes:
1131cbf0fb2b
("net/ark: stub PMD for Atomic Rules Arkville")
Cc: stable@dpdk.org
Signed-off-by: John Miller <john.miller@atomicrules.com>
drivers/net/ark/ark_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ark/ark_ethdev.c
b/drivers/net/ark/ark_ethdev.c
index
94dee0b
..
bbff477
100644
(file)
--- a/
drivers/net/ark/ark_ethdev.c
+++ b/
drivers/net/ark/ark_ethdev.c
@@
-899,6
+899,12
@@
process_file_args(const char *key, const char *value, void *extra_args)
int size = 0;
int first = 1;
+ if (file == NULL) {
+ PMD_DRV_LOG(ERR, "Unable to open "
+ "config file %s\n", value);
+ return -1;
+ }
+
while (fgets(line, sizeof(line), file)) {
size += strlen(line);
if (size >= ARK_MAX_ARG_LEN) {