usb-smartcard-reader: Properly NAK interrupt eps when we've no events
When we've no data to return from the interrupt endpoint, return NAK rather then a 0 length packet. CC: Alon Levy <alevy@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
		
							parent
							
								
									33c1a6856f
								
							
						
					
					
						commit
						c4020746ff
					
				| 
						 | 
				
			
			@ -1002,6 +1002,8 @@ static void ccid_handle_data(USBDevice *dev, USBPacket *p)
 | 
			
		|||
                        "handle_data: int_in: notify_slot_change %X, "
 | 
			
		||||
                        "requested len %zd\n",
 | 
			
		||||
                        s->bmSlotICCState, p->iov.size);
 | 
			
		||||
            } else {
 | 
			
		||||
                p->status = USB_RET_NAK;
 | 
			
		||||
            }
 | 
			
		||||
            break;
 | 
			
		||||
        default:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue