diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2013-03-20 11:40:02 +0100 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-03 11:39:43 +0200 |
| commit | c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b (patch) | |
| tree | 5baada12d24aa414379ba75d5e4b12142fca934c /hw/usb.h | |
| parent | 4b7b2afae773f00c785724261079ef211fd6021b (diff) | |
| download | focaccia-qemu-c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b.tar.gz focaccia-qemu-c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b.zip | |
usb-hub: limit chain length
USB supports up to 5 hubs chained. Catch attempts to chain more. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
| -rw-r--r-- | hw/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h index 1b10684dde..4d9d05e9bc 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -337,6 +337,7 @@ typedef struct USBPortOps { struct USBPort { USBDevice *dev; int speedmask; + int hubcount; char path[16]; USBPortOps *ops; void *opaque; |