summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/misc/hwmem/hwmem-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/hwmem/hwmem-main.c b/drivers/misc/hwmem/hwmem-main.c
index 9162ff4fc91..b91d99bc2be 100644
--- a/drivers/misc/hwmem/hwmem-main.c
+++ b/drivers/misc/hwmem/hwmem-main.c
@@ -240,9 +240,10 @@ struct hwmem_alloc *hwmem_alloc(size_t size, enum hwmem_alloc_flags flags,
alloc->flags = flags;
alloc->default_access = def_access;
INIT_LIST_HEAD(&alloc->threadg_info_list);
+#ifdef CONFIG_DEBUG_FS
alloc->creator = __builtin_return_address(0);
alloc->creator_tgid = task_tgid_nr(current);
-
+#endif
alloc->mem_type = resolve_mem_type(mem_type);
if (IS_ERR(alloc->mem_type)) {
ret = PTR_ERR(alloc->mem_type);