Re: [dpdk-dev] [PATCH] virtio: fix PCI config err handling

2017-06-12 Thread Yuanhan Liu
On Mon, Jun 05, 2017 at 04:44:33PM +0100, Brian Russell wrote: > In virtio_read_caps, rte_pci_read_config returns the number of bytes > read from PCI config or <0 on error. > If less than the expected number of bytes are read then log the > failure and return rather than carrying on with garbage. >

[dpdk-dev] [PATCH] virtio: fix PCI config err handling

2017-06-05 Thread Brian Russell
In virtio_read_caps, rte_pci_read_config returns the number of bytes read from PCI config or <0 on error. If less than the expected number of bytes are read then log the failure and return rather than carrying on with garbage. Signed-off-by: Brian Russell --- drivers/net/virtio/virtio_pci.c | 12