git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: check fragmented headers in non-debug as well
[dpdk.git]
/
lib
/
librte_pci
/
rte_pci.c
diff --git
a/lib/librte_pci/rte_pci.c
b/lib/librte_pci/rte_pci.c
index
d8272b9
..
1d1cbc7
100644
(file)
--- a/
lib/librte_pci/rte_pci.c
+++ b/
lib/librte_pci/rte_pci.c
@@
-163,6
+163,7
@@
pci_map_resource(void *requested_addr, int fd, off_t offset, size_t size,
__func__, fd, requested_addr, size,
(unsigned long long)offset,
rte_strerror(rte_errno), mapaddr);
+ mapaddr = MAP_FAILED; /* API uses mmap error code */
} else
RTE_LOG(DEBUG, EAL, " PCI memory mapped at %p\n", mapaddr);