pci_emul_dior(): fix uninitialized scalar variable.
Prevent from returning an unitialized value in case the ior size is unknown. CID: 1194319 Reviewed by: grehan
This commit is contained in:
parent
945ed5d635
commit
f841a1c4cc
@ -2054,6 +2054,7 @@ pci_emul_dior(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
|
||||
return (0);
|
||||
}
|
||||
|
||||
value = 0;
|
||||
if (size == 1) {
|
||||
value = sc->ioregs[offset];
|
||||
} else if (size == 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user