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 17.11.5
[deb_dpdk.git]
/
drivers
/
bus
/
pci
/
linux
/
pci_uio.c
diff --git
a/drivers/bus/pci/linux/pci_uio.c
b/drivers/bus/pci/linux/pci_uio.c
index
92b7f02
..
39176ac
100644
(file)
--- a/
drivers/bus/pci/linux/pci_uio.c
+++ b/
drivers/bus/pci/linux/pci_uio.c
@@
-328,7
+328,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));