File 0391-libqos-usb-hcd-ehci-use-32-bit-writ.patch of Package qemu.19799

From: Jose R Ziviani <jose.ziviani@suse.com>
Date: Tue, 11 May 2021 08:49:47 -0600
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: Jose R Ziviani <jose.ziviani@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 a0f13ef40a219c52e7432db0342a..f8db955949cf64817e976706f2d4 100644
--- a/tests/usb-hcd-ehci-test.c
+++ b/tests/usb-hcd-ehci-test.c
@@ -92,7 +92,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.base + 0x60, 1);
+    qpci_io_writel(ehci1.dev, ehci1.base + 0x60, 1);
 }
 
 static void pci_uhci_port_2(void)
openSUSE Build Service is sponsored by