Make sure the apldart(4) implementation of bus_dmamap_destroy(9) does the
authorkettenis <kettenis@openbsd.org>
Mon, 14 Mar 2022 13:08:32 +0000 (13:08 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 14 Mar 2022 13:08:32 +0000 (13:08 +0000)
commitf1481cb2a9e37f502408db2aa64ea7960d8a2f5f
tree88f9a0924a9977fa64ab93a1593cc4bb3acdf83d
parent6e264ad04996a3121af527d964c0bf6c575af7e9
Make sure the apldart(4) implementation of bus_dmamap_destroy(9) does the
equivalent of bus_dmamap_unload(9) if active mappings exist.  This fixes
the kerenal panics seen with bringing bwfm(4) down and up again.

ok jsg@, patrick@
sys/arch/arm64/dev/apldart.c