DMA foolproofing