The trick is that you need to couple together: * ownership of the storage buffer, with * the thing that represents the DMA transfer If you drop that *thing*, it should stop the DMA transfer. If you forget that *thing*, you should permanently lose the buffer and the DMA handle.