Commit b8b8a346 authored by Deepak Saxena's avatar Deepak Saxena Committed by Russell King

[ARM PATCH] 1811/1: Set dma_handle to ~0 when coherent allocation too big

Patch from Deepak Saxena
parent 51af77db
......@@ -162,6 +162,7 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, int gfp,
if ((limit && size >= limit) || size >= (CONSISTENT_END - CONSISTENT_BASE)) {
printk(KERN_WARNING "coherent allocation too big (requested %#x mask %#Lx)\n",
size, mask);
*handle = ~0;
return NULL;
}
......
Markdown is supported
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