summaryrefslogtreecommitdiffstats
path: root/hw/usb/bus.c
diff options
context:
space:
mode:
authorPeter Maydell2019-01-08 17:07:32 +0100
committerPeter Maydell2019-01-08 17:07:32 +0100
commit147923b1a901a0370f83a0f4c58ec1baffef22f0 (patch)
tree349c735bbae9c259a493c535e193dfab0332574c /hw/usb/bus.c
parentqemu-thread: Don't block SEGV, ILL and FPE (diff)
parentusb: move ehci_create_ich9_with_companions to hw/i386 (diff)
downloadqemu-147923b1a901a0370f83a0f4c58ec1baffef22f0.tar.gz
qemu-147923b1a901a0370f83a0f4c58ec1baffef22f0.tar.xz
qemu-147923b1a901a0370f83a0f4c58ec1baffef22f0.zip
Merge remote-tracking branch 'remotes/kraxel/tags/usb-20190108-pull-request' into staging
usb: generic sysbus ehci, bugfixes. # gpg: Signature made Tue 08 Jan 2019 15:53:37 GMT # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/usb-20190108-pull-request: usb: move ehci_create_ich9_with_companions to hw/i386 hw/usb: Add generic sys-bus EHCI controller usb: dev-mtp: fix memory leak in error path usb: drop unnecessary usb_device_post_load checks hw/usb: fix mistaken de-initialization of CCID state Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/usb/bus.c')
-rw-r--r--hw/usb/bus.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index bf796d67e6..6fffab7bfa 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -59,12 +59,6 @@ static int usb_device_post_load(void *opaque, int version_id)
} else {
dev->attached = true;
}
- if (dev->setup_index < 0 ||
- dev->setup_len < 0 ||
- dev->setup_index > dev->setup_len ||
- dev->setup_len > sizeof(dev->data_buf)) {
- return -EINVAL;
- }
return 0;
}