summaryrefslogtreecommitdiff
path: root/arch/arm64
diff options
context:
space:
mode:
authorAllen Yu <alleny@nvidia.com>2014-05-26 17:42:01 +0800
committerMandar Padmawar <mpadmawar@nvidia.com>2014-06-03 07:34:22 -0700
commitd555f5e425f717601e71e6ff4f205fee85d7c5e2 (patch)
tree4b5e6b06d27cfa33b85d2050c1fdf352987e4eb7 /arch/arm64
parent27ddcf9a6ce0777a975dabbc59cb2356c208ac18 (diff)
arm: tegra: pm: suppress kmemleak false positive
The memory block for relocating lp0 vector is referenced by a physical address (i.e. tegra_lp0_vec_start) which kmemleak can't detect. Mark it as not a leak to avoid false positive. Bug 200007297 Change-Id: Ie137f08d77911677d9e76fdb7d0112a1610dd72d Signed-off-by: Allen Yu <alleny@nvidia.com> Reviewed-on: http://git-master/r/415032 (cherry picked from commit 60520279ce2d6081a87a1bc1127046223b3839f6) Reviewed-on: http://git-master/r/416824 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/mach-tegra/pm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/mach-tegra/pm.c b/arch/arm64/mach-tegra/pm.c
index e089ac54095b..3ddcad592234 100644
--- a/arch/arm64/mach-tegra/pm.c
+++ b/arch/arm64/mach-tegra/pm.c
@@ -53,6 +53,7 @@
#include <linux/irqchip/tegra.h>
#include <linux/tegra-pm.h>
#include <linux/tegra_pm_domains.h>
+#include <linux/kmemleak.h>
#include <trace/events/power.h>
#include <trace/events/nvsecurity.h>
@@ -996,6 +997,12 @@ void __init tegra_init_suspend(struct tegra_suspend_platform_data *plat)
goto out;
}
+ /* Avoid a kmemleak false positive. The allocated memory
+ * block is later referenced by a physical address (i.e.
+ * tegra_lp0_vec_start) which kmemleak can't detect.
+ */
+ kmemleak_not_leak(reloc_lp0);
+
orig = ioremap_wc(tegra_lp0_vec_start, tegra_lp0_vec_size);
WARN_ON(!orig);
if (!orig) {