X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_nic.c;h=ad0b9e9d369e4b66f3a439977ae6235635bc3553;hp=636d8a5b194045bcc16c1d91837c00eed03c31af;hb=d775bbfa668ce9968bacc0e4257cf86e5ab88e90;hpb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a diff --git a/palacios/src/devices/lnx_virtio_nic.c b/palacios/src/devices/lnx_virtio_nic.c index 636d8a5..ad0b9e9 100644 --- a/palacios/src/devices/lnx_virtio_nic.c +++ b/palacios/src/devices/lnx_virtio_nic.c @@ -574,7 +574,7 @@ static int virtio_io_read(struct guest_info *core, virtio->pci_dev, 0); break; - case VIRTIO_NET_CONFIG ... VIRTIO_NET_CONFIG + ETH_ALEN: + case VIRTIO_NET_CONFIG ... VIRTIO_NET_CONFIG + ETH_ALEN - 1: *(uint8_t *)dst = virtio->net_cfg.mac[port_idx-VIRTIO_NET_CONFIG]; break;