another occurrence where a very large dma mapping can cause integer overflow
Submitted by: rlibby Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
efdadaa2d8
commit
56db4ebd34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348687
@ -702,7 +702,7 @@ dmar_bus_dmamap_load_phys(bus_dma_tag_t dmat, bus_dmamap_t map1,
|
||||
return (ENOMEM);
|
||||
}
|
||||
}
|
||||
vm_page_initfake(&fma[i], pstart + i * PAGE_SIZE,
|
||||
vm_page_initfake(&fma[i], pstart + ptoa(i),
|
||||
VM_MEMATTR_DEFAULT);
|
||||
ma[i] = &fma[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user