summaryrefslogtreecommitdiff
path: root/pixman
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-05-23 11:23:07 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-05-23 14:59:40 +0200
commitd400fc018b326104d26d730e5cc8c36c1f662c34 (patch)
treeecf9f267afd868aa035e508522f10be06c96a1c9 /pixman
parent816ac92ef769f9ffc534e49a1bb6177bddce7aa2 (diff)
usb/ohci: Fix crash with when specifying too many num-ports
QEMU currently crashes when an OHCI controller is instantiated with too many ports, e.g. "-device pci-ohci,num-ports=100,masterbus=1". Thus add a proper check in usb_ohci_init() to make sure that we do not use more than OHCI_MAX_PORTS = 15 ports here. Ticket: https://bugs.launchpad.net/qemu/+bug/1581308 Signed-off-by: Thomas Huth <thuth@redhat.com> Message-id: 1463995387-11710-1-git-send-email-thuth@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'pixman')
0 files changed, 0 insertions, 0 deletions