File 0262-libqos-usb-hcd-ehci-use-32-bit-writ.patch of Package qemu.30219

From: Paolo Bonzini <pbonzini@redhat.com>
Date: Tue, 23 Jun 2020 12:18:24 -0400
Subject: libqos: usb-hcd-ehci: use 32-bit write for config register

Git-commit: 89ed83d8b23c11d250c290593cad3ca839d5b053
References: bsc#1172382 (CVE-2020-13754)

The memory region ops have min_access_size == 4 so obey it.

Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
---
 tests/usb-hcd-ehci-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/usb-hcd-ehci-test.c b/tests/usb-hcd-ehci-test.c
index f28ea27f37f48f7c957b2843c38a..ea674a658ece4e18fdcf7f0b1b63 100644
--- a/tests/usb-hcd-ehci-test.c
+++ b/tests/usb-hcd-ehci-test.c
@@ -96,7 +96,7 @@ static void pci_ehci_port_1(void)
 static void pci_ehci_config(void)
 {
     /* hands over all ports from companion uhci to ehci */
-    qpci_io_writew(ehci1.dev, ehci1.bar, 0x60, 1);
+    qpci_io_writel(ehci1.dev, ehci1.bar, 0x60, 1);
 }
 
 static void pci_uhci_port_2(void)
openSUSE Build Service is sponsored by