Commit a52ce121 authored by Sean Paul's avatar Sean Paul Committed by Catalin Marinas
Browse files

arm64: Use DMA_ERROR_CODE to denote failed allocation

This patch replaces the static assignment of ~0 to dma_handle with
DMA_ERROR_CODE to be consistent with other platforms.
Signed-off-by: default avatarSean Paul <>
Signed-off-by: default avatarCatalin Marinas <>
parent 7acf71d1
......@@ -122,7 +122,7 @@ static void *__dma_alloc_noncoherent(struct device *dev, size_t size,
__dma_free_coherent(dev, size, ptr, *dma_handle, attrs);
*dma_handle = ~0;
*dma_handle = DMA_ERROR_CODE;
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment