dom0+vm/kernel: fix backend not do honor URB transfer buffer freeing requests

This commit is contained in:
Alexandre Bezroutchko 2012-12-10 06:50:03 +01:00
parent 25733b422e
commit 4f9a1404eb
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -pur linux-3.4.18.orig/drivers/usb/host/xen-usbback/usbback.c linux-3.4.18/drivers/usb/host/xen-usbback/usbback.c
--- linux-3.4.18.orig/drivers/usb/host/xen-usbback/usbback.c 2012-11-20 00:03:57.562663987 +0100
+++ linux-3.4.18/drivers/usb/host/xen-usbback/usbback.c 2012-12-09 16:16:36.395197677 +0100
@@ -582,6 +582,8 @@
break;
}
+ urb->transfer_flags &= ~(URB_FREE_BUFFER);
+
if (req->buffer_length) {
urb->transfer_dma = pending_req->transfer_dma;
urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
diff -pur linux-3.4.18.orig/drivers/usb/host/xen-usbfront.c linux-3.4.18/drivers/usb/host/xen-usbfront.c

View File

@ -1 +1 @@
1
1debug20121209b