accesio / APCI

Currently supported and recommended PCI drivers
6 stars 8 forks source link

fix freeze on removing module #2

Closed fcayci closed 3 years ago

fcayci commented 3 years ago

When removing the module it checks for the dma_virt_addr and if it is not NULL it tries to free the dma allocation. However since dma_virt_addr is never initialized, it holds a garbage value which ends up causing a freeze on the system.