bus/vmbus: stop mapping if empty resource found
If vmbus is run on older kernel (without all the uio mappings), then the bus driver should stop when it hits the missing mappings rather than recording the empty values. Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
This commit is contained in:
parent
3f9277031a
commit
41a7f8cbee
@ -98,9 +98,9 @@ vmbus_uio_map_primary(struct rte_vmbus_device *dev)
|
||||
|
||||
/* Map the resources */
|
||||
for (i = 0; i < VMBUS_MAX_RESOURCE; i++) {
|
||||
/* skip empty BAR */
|
||||
/* stop at empty BAR */
|
||||
if (dev->resource[i].len == 0)
|
||||
continue;
|
||||
break;
|
||||
|
||||
ret = vmbus_uio_map_resource_by_index(dev, i, uio_res, 0);
|
||||
if (ret)
|
||||
|
Loading…
x
Reference in New Issue
Block a user