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/hns3: add max number of segments compatibility
[dpdk.git]
/
drivers
/
bus
/
vmbus
/
vmbus_common_uio.c
diff --git
a/drivers/bus/vmbus/vmbus_common_uio.c
b/drivers/bus/vmbus/vmbus_common_uio.c
index
1aa5cb2
..
8e476f2
100644
(file)
--- a/
drivers/bus/vmbus/vmbus_common_uio.c
+++ b/
drivers/bus/vmbus/vmbus_common_uio.c
@@
-75,9
+75,11
@@
vmbus_uio_map_secondary(struct rte_vmbus_device *dev)
if (mapaddr == MAP_FAILED)
VMBUS_LOG(ERR,
"mmap resource %d in secondary failed", i);
- else
+ else
{
VMBUS_LOG(ERR,
"mmap resource %d address mismatch", i);
+ vmbus_unmap_resource(mapaddr, uio_res->maps[i].size);
+ }
close(fd);
return -1;