Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54f503d7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cma: Return 0 on error path"

parents 35188fa9 90a838a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -609,6 +609,7 @@ unsigned long dma_alloc_from_contiguous(struct device *dev, int count,
		pageno = bitmap_find_next_zero_area(cma->bitmap, cma->count,
						    start, count, mask);
		if (pageno >= cma->count) {
			pfn = 0;
			mutex_unlock(&cma->lock);
			break;
		}