Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
New upstream version 16.11.9
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_pci.h
diff --git
a/lib/librte_eal/common/include/rte_pci.h
b/lib/librte_eal/common/include/rte_pci.h
index
9ce8847
..
10fa856
100644
(file)
--- a/
lib/librte_eal/common/include/rte_pci.h
+++ b/
lib/librte_eal/common/include/rte_pci.h
@@
-248,6
+248,8
@@
TAILQ_HEAD(mapped_pci_res_list, mapped_pci_resource);
do { \
unsigned long val; \
char *end; \
+ if (*in == '\0') \
+ return -EINVAL; \
errno = 0; \
val = strtoul((in), &end, 16); \
if (errno != 0 || end[0] != (dlm) || val > (lim)) \