google / gasket-driver

GNU General Public License v2.0
47 stars 29 forks source link

Fix DMA address truncation in gasket_coherent_buffer #2

Closed whame closed 2 years ago

whame commented 2 years ago

ulong may not be sufficiently wide for addresses returned by the DMA API. For example, a 32-bit platform can still have DMA addresses larger than 32-bit. By using the correct type dma_addr_t we fix this truncation.