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
00f3efe1bd
commit
5fb878a957
@ -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