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
This commit is contained in:
Hans Petter Selasky 2014-02-05 08:02:52 +00:00
parent 00f3efe1bd
commit 5fb878a957

View File

@ -452,7 +452,7 @@ usb_pc_common_mem_cb(void *arg, bus_dma_segment_t *segs,
goto done;
}
#endif
while (1) {
while (pc->ismultiseg) {
off += USB_PAGE_SIZE;
if (off >= (segs->ds_len + rem)) {
/* page crossing */