Fix usage of USB_DEV_FLAG_IS_HOST flag.
USB_DEV_FLAG_IS_HOST is the bit number, not value. Booting with a
"Fitbit Base Station" USB dongle was triggering this assert.
Signed-off-by: Michael Marineau <mike@marineau.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 756335292f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
			
			
This commit is contained in:
		
							parent
							
								
									9b5751ec09
								
							
						
					
					
						commit
						a548bacfba
					
				| 
						 | 
				
			
			@ -410,7 +410,7 @@ void usb_handle_packet(USBDevice *dev, USBPacket *p)
 | 
			
		|||
            assert(p->ep->type != USB_ENDPOINT_XFER_ISOC);
 | 
			
		||||
            /* using async for interrupt packets breaks migration */
 | 
			
		||||
            assert(p->ep->type != USB_ENDPOINT_XFER_INT ||
 | 
			
		||||
                   (dev->flags & USB_DEV_FLAG_IS_HOST));
 | 
			
		||||
                   (dev->flags & (1 << USB_DEV_FLAG_IS_HOST)));
 | 
			
		||||
            usb_packet_set_state(p, USB_PACKET_ASYNC);
 | 
			
		||||
            QTAILQ_INSERT_TAIL(&p->ep->queue, p, queue);
 | 
			
		||||
        } else if (p->status == USB_RET_ADD_TO_QUEUE) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue