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

Commit 4d24f88f authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Prasad Sodagudi
Browse files

cma: skip kmemleak for common cma region



Several clients allocate buffers  out of common cma region
using DMA_ATTR_NO_KERNEL_MAPPING attribute. Since this
removes kernel mapping for these buffers, calling kmemleak
scan crashes accessing such regions. Hence Skip kmemleak
for common cma region.

Change-Id: I019677433dcd3c89839e73d1c71d2691732e408a
Signed-off-by: default avatarShiraz Hashim <shashim@codeaurora.org>
parent d434c03e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#include <linux/cma.h>
#include <linux/highmem.h>
#include <linux/delay.h>
#include <linux/kmemleak.h>
#include <trace/events/cma.h>

#include "cma.h"
@@ -311,6 +312,9 @@ int __init cma_declare_contiguous(phys_addr_t base,
			}
		}

		if (addr < highmem_start)
			kmemleak_no_scan(__va(addr));

		base = addr;
	}