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

Commit 542fbe9f authored by Shiraz Hashim's avatar Shiraz Hashim
Browse files

drivers: dma-removed: use memset_io for ioremap region



Using memset generates unaligned access exception for
device type memory on armv8, hence use memset_io for
ioremap region.

Change-Id: I26c82d4bed20f1c163953680aa200c95842d3f21
Signed-off-by: default avatarShiraz Hashim <shashim@codeaurora.org>
parent 14821273
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 *
 *  Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *  Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 *  Copyright (C) 2000-2004 Russell King
 *
 * This program is free software; you can redistribute it and/or modify
@@ -118,7 +118,7 @@ void *removed_alloc(struct device *dev, size_t size, dma_addr_t *handle,
			bitmap_clear(dma_mem->bitmap, pageno, nbits);
		} else {
			if (!skip_zeroing)
				memset(addr, 0, size);
				memset_io(addr, 0, size);
			if (no_kernel_mapping) {
				iounmap(addr);
				addr = (void *)NO_KERNEL_MAPPING_DUMMY;