summaryrefslogtreecommitdiffstats
path: root/scripts/create_config
diff options
context:
space:
mode:
authorPeter Maydell2019-03-28 14:35:03 +0100
committerGerd Hoffmann2019-04-01 08:53:44 +0200
commit5189e30b146ab39f9da8f35a23fc3c8e30b219c2 (patch)
tree883d77821e63a95a59cbbcdc8fd6c230a7baf5a3 /scripts/create_config
parentRevert "audio: fix pc speaker init" (diff)
downloadqemu-5189e30b146ab39f9da8f35a23fc3c8e30b219c2.tar.gz
qemu-5189e30b146ab39f9da8f35a23fc3c8e30b219c2.tar.xz
qemu-5189e30b146ab39f9da8f35a23fc3c8e30b219c2.zip
hw/usb/bus.c: Handle "no speed matched" case in usb_mask_to_str()
In usb_mask_to_str() we convert a mask of USB speeds into a human-readable string (like "full+high") for use in tracing and error messages. However the conversion code doesn't do anything to the string buffer if the passed in speedmask doesn't match any of the recognized speeds, which means that the tracing and error messages will end up with random garbage in them. This can happen if we're doing USB device passthrough. Handle the "unrecognized speed" case by using the string "unknown". Fixes: https://bugs.launchpad.net/qemu/+bug/1603785 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20190328133503.6490-1-peter.maydell@linaro.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/create_config')
0 files changed, 0 insertions, 0 deletions