mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix slots DMA memory handling. It's similar to r290553.
Discussed with: gonzo Approved by: kib (mentor)
This commit is contained in:
parent
947d5c8d49
commit
780fefef0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290642
|
@ -213,10 +213,10 @@ vchiq_platform_init(VCHIQ_STATE_T *state)
|
|||
|
||||
failed_vchiq_init:
|
||||
failed_init_slots:
|
||||
failed_load:
|
||||
bus_dmamap_unload(bcm_slots_dma_tag, bcm_slots_dma_map);
|
||||
failed_load:
|
||||
bus_dmamem_free(bcm_slots_dma_tag, g_slot_mem, bcm_slots_dma_map);
|
||||
failed_alloc:
|
||||
bus_dmamap_destroy(bcm_slots_dma_tag, bcm_slots_dma_map);
|
||||
bus_dma_tag_destroy(bcm_slots_dma_tag);
|
||||
|
||||
return err;
|
||||
|
@ -227,7 +227,7 @@ vchiq_platform_exit(VCHIQ_STATE_T *state)
|
|||
{
|
||||
|
||||
bus_dmamap_unload(bcm_slots_dma_tag, bcm_slots_dma_map);
|
||||
bus_dmamap_destroy(bcm_slots_dma_tag, bcm_slots_dma_map);
|
||||
bus_dmamem_free(bcm_slots_dma_tag, g_slot_mem, bcm_slots_dma_map);
|
||||
bus_dma_tag_destroy(bcm_slots_dma_tag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue