svn commit: r212941 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Tue Sep 21 00:06:19 UTC 2010


Author: weongyo
Date: Tue Sep 21 00:06:19 2010
New Revision: 212941
URL: http://svn.freebsd.org/changeset/base/212941

Log:
  Adds a magic +2 for the number of DMA pages.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_busdma.c

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c	Tue Sep 21 00:05:10 2010	(r212940)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c	Tue Sep 21 00:06:19 2010	(r212941)
@@ -926,7 +926,7 @@ usb_bdma_work_loop(struct usb_xfer_queue
 			xfer->frbuffers[nframes].isread = isread;
 			xfer->frbuffers[nframes].page_start = pg;
 			xfer->frbuffers[nframes].npage =
-			    (xfer->frlengths[nframes] / USB_PAGE_SIZE);
+			    (xfer->frlengths[nframes] / USB_PAGE_SIZE) + 2;
 
 			pg += (xfer->frlengths[nframes] / USB_PAGE_SIZE);
 			pg += 2;


More information about the svn-src-user mailing list