Make sure driver is attached before allocating a channel. Fixes a crash on
authortobhe <tobhe@openbsd.org>
Sun, 23 Oct 2022 22:15:45 +0000 (22:15 +0000)
committertobhe <tobhe@openbsd.org>
Sun, 23 Oct 2022 22:15:45 +0000 (22:15 +0000)
commit4e642e0ae9411d057f809d90b8d3e2d4f551487c
tree6ecb8e287fb162ccad6dcd39538401b258825235
parent9b46f7e8b6445b2f0cbac0414d824063ae6a5bd9
Make sure driver is attached before allocating a channel.  Fixes a crash on
M2 Macbook Air with a newer device tree where aplaudio tries to allocate a
channel after apldma_attach() failed.

ok kettenis@
sys/arch/arm64/dev/apldma.c