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

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

Merge "arm: dma-removed: Add option to skip buffer zeroing"

parents cd06bdcd 8a232c09
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -47,6 +47,7 @@ void *removed_alloc(struct device *dev, size_t size, dma_addr_t *handle,
		if (WARN_ON(!addr)) {
		if (WARN_ON(!addr)) {
			dma_release_from_contiguous(dev, pfn, order);
			dma_release_from_contiguous(dev, pfn, order);
		} else {
		} else {
			if (!dma_get_attr(DMA_ATTR_SKIP_ZEROING, attrs))
				memset(addr, 0, size);
				memset(addr, 0, size);
			if (no_kernel_mapping) {
			if (no_kernel_mapping) {
				iounmap(addr);
				iounmap(addr);