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
config: remove default configs used with make
[dpdk.git]
/
drivers
/
bus
/
pci
/
pci_common_uio.c
diff --git
a/drivers/bus/pci/pci_common_uio.c
b/drivers/bus/pci/pci_common_uio.c
index
793dfd0
..
f4dca9d
100644
(file)
--- a/
drivers/bus/pci/pci_common_uio.c
+++ b/
drivers/bus/pci/pci_common_uio.c
@@
-58,7
+58,7
@@
pci_uio_map_secondary(struct rte_pci_device *dev)
"Cannot mmap device resource file %s to address: %p\n",
uio_res->maps[i].path,
uio_res->maps[i].addr);
- if (mapaddr !=
NULL
) {
+ if (mapaddr !=
MAP_FAILED
) {
/* unmap addrs correctly mapped */
for (j = 0; j < i; j++)
pci_unmap_resource(