Skip to content
Snippets Groups Projects
Commit 13731de6 authored by Chintan Pandya's avatar Chintan Pandya Committed by Laura Abbott
Browse files

dma-contiguous: Retrun 'zero' pfn in case of error


When CMA allocator gets error return from the page
allocator framework, except for the -EBUSY case, it
will bail out. Caller depends on the 'pfn' for
confirming allocation successful or not. Return 0
for those error case.

Change-Id: Ica4e04a9f9f18b1a29035ba2bae9deecfd68a5e8
Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent dc96f488
No related branches found
No related tags found
No related merge requests found
......@@ -570,6 +570,7 @@ unsigned long dma_alloc_from_contiguous(struct device *dev, int count,
if (ret == 0) {
break;
} else if (ret != -EBUSY) {
pfn = 0;
clear_cma_bitmap(cma, pfn, count);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment