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:
parent
f4e46bef98
commit
03bdae2d32
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user