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-rc3
[deb_dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_pci.c
diff --git
a/drivers/net/virtio/virtio_pci.c
b/drivers/net/virtio/virtio_pci.c
index
e6da680
..
55b717c
100644
(file)
--- a/
drivers/net/virtio/virtio_pci.c
+++ b/
drivers/net/virtio/virtio_pci.c
@@
-553,7
+553,7
@@
get_cfg_addr(struct rte_pci_device *dev, struct virtio_pci_cap *cap)
uint32_t offset = cap->offset;
uint8_t *base;
- if (bar >
5
) {
+ if (bar >
= PCI_MAX_RESOURCE
) {
PMD_INIT_LOG(ERR, "invalid bar: %u", bar);
return NULL;
}