]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: very large dma mappings can cause integer overflow
authorKristof Provost <kp@FreeBSD.org>
Wed, 2 Sep 2020 11:33:31 +0000 (11:33 +0000)
committerKristof Provost <kp@FreeBSD.org>
Wed, 2 Sep 2020 11:33:31 +0000 (11:33 +0000)
commit3bebdc0564eb597ca11de52fff89308fb4a7edce
treea2872b1fc00679b0d0be5412514b961335ed72a6
parente7b2173d0b6318fbdc0c112918c2d5573a11d7ec
riscv: very large dma mappings can cause integer overflow

Fix the return type for _bus_dmamap_addseg().
Based on the same fix done for arm64 in r348571.

Sponsored by: Axiado
sys/riscv/riscv/busdma_bounce.c