diff options
| author | Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn> | 2026-05-27 02:42:43 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2026-05-27 18:12:09 +0000 |
| commit | d1488cd762bee79240a715bf04f3d30e9a121b26 (patch) | |
| tree | 905758867938b64f0503e8c9a5ec48333f50f5cf /sys/dev/evdev | |
| parent | 6880405bf97df03ffce227d34c2faa99b602a49d (diff) | |
bcm2835_sdhci: Clean up DMA resources on attach failure
bcm_sdhci_attach() allocates a DMA channel with bcm_dma_allocate()
before creating the bus_dma tag and map. If a later initialization
step fails, the common error path releases the interrupt and memory
resources, but leaves the DMA channel allocated.
Call bcm_dma_free() for cleanup, as it already performs the required
internal checks and can therefore be invoked directly.
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Reviewed by: mhorne
MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/2241
Diffstat (limited to 'sys/dev/evdev')
0 files changed, 0 insertions, 0 deletions
