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
/
linuxapp
/
eal
/
eal_pci_uio.c
diff --git
a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c
b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c
index
4228067
..
3ca217f
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_pci_uio.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_pci_uio.c
@@
-327,7
+327,7
@@
pci_uio_map_resource_by_index(struct rte_pci_device *dev, int res_idx,
loc->function, res_idx);
/* allocate memory to keep path */
loc->function, res_idx);
/* allocate memory to keep path */
- maps[map_idx].path = rte_malloc(NULL, s
trlen(devname) + 1
, 0);
+ maps[map_idx].path = rte_malloc(NULL, s
izeof(devname)
, 0);
if (maps[map_idx].path == NULL) {
RTE_LOG(ERR, EAL, "Cannot allocate memory for path: %s\n",
strerror(errno));
if (maps[map_idx].path == NULL) {
RTE_LOG(ERR, EAL, "Cannot allocate memory for path: %s\n",
strerror(errno));