Author: hselasky Date: Wed Feb 5 08:02:52 2014 New Revision: 261505 URL: http://svnweb.freebsd.org/changeset/base/261505
Log: Fix a regression issue. Contiguous single segment allocations above PAGE_SIZE bytes should only use one USB page structure. Fixes a problem with some external drivers. MFC after: 2 days Modified: head/sys/dev/usb/usb_busdma.c Modified: head/sys/dev/usb/usb_busdma.c ============================================================================== --- head/sys/dev/usb/usb_busdma.c Wed Feb 5 04:39:03 2014 (r261504) +++ head/sys/dev/usb/usb_busdma.c Wed Feb 5 08:02:52 2014 (r261505) @@ -452,7 +452,7 @@ usb_pc_common_mem_cb(void *arg, bus_dma_ goto done; } #endif - while (1) { + while (pc->ismultiseg) { off += USB_PAGE_SIZE; if (off >= (segs->ds_len + rem)) { /* page crossing */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"