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:
hselasky 2014-02-05 08:02:52 +00:00
parent f4e46bef98
commit 03bdae2d32

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 */