speedtch usbatm.c,1.25,1.26

Duncan Sands duncan at infradead.org
Tue May 3 04:41:59 EDT 2005


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv31564

Modified Files:
	usbatm.c 
Log Message:
In the case of receive urbs, if we don't signal the failure via status,
usbatm_rx_process will process the urb again, i.e. double (or more) packet
reception.


Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- usbatm.c	3 May 2005 08:38:23 -0000	1.25
+++ usbatm.c	3 May 2005 08:41:56 -0000	1.26
@@ -237,6 +237,8 @@
 		atm_dbg(channel->usbatm, "%s: trx 0x%p urb 0x%p submission failed (%d)!\n",
 			__func__, trx, trx->urb, ret);
 
+		trx->urb->status = ret;
+
 		/* consider all errors transient and return the buffer back to the queue */
 		spin_lock_irq(&channel->lock);
 		list_add(&trx->list, &channel->list);




More information about the Usbatm-commits mailing list