Add missing breaks in I/O BAR read/write.

This could be important if any guest actually used those registers.

Reported by:	Coverity
CID:		1357519, 1357520
This commit is contained in:
Alexander Motin 2016-07-12 17:30:37 +00:00
parent 3af7c80523
commit a88b19f9e2

View File

@ -2040,6 +2040,7 @@ e82545_write(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
DPRINTF("Unknown io bar write offset:0x%lx value:0x%lx size:%d\r\n", offset, value, size);
break;
}
break;
case E82545_BAR_REGISTER:
if (size != 4) {
DPRINTF("Wrong register write size:%d offset:0x%lx value:0x%lx\r\n", size, offset, value);
@ -2092,6 +2093,7 @@ e82545_read(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
offset, size);
break;
}
break;
case E82545_BAR_REGISTER:
if (size != 4) {
DPRINTF("Wrong register read size:%d offset:0x%lx\r\n",