Release DMA Memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a kernel module that communicates to a PCI device via DMA.  The
module allocates the shared memory using dma_alloc_coherent().  When
the module is unloaded, a call to dma_free_coherent() is executed.

My question is, since the DMA memory is not explicitly zeroed before
deallocation, is there a chance that the PCI device could still read
(non-zeroed data) and act upon the DMA memory after the module unloads
and calls dma_free_coherent()?

Thanks!

-Matt

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux