VIRTIO_ID_MAX_NUM is the largest device ID plus 1. Therefore a device id
cannot be greater or equal to VIRTIO_ID_MAX_NUM. Fix the comparison
accordingly.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| virtio-uclass.c | ||
| virtio_blk.c | ||
| virtio_blk.h | ||
| virtio_mmio.c | ||
| virtio_mmio.h | ||
| virtio_net.c | ||
| virtio_net.h | ||
| virtio_pci.h | ||
| virtio_pci_legacy.c | ||
| virtio_pci_modern.c | ||
| virtio_ring.c | ||
| virtio_rng.c | ||
| virtio_sandbox.c | ||