msm: kgsl: Do not expose kernel pointer for global entries
Add kernel pointer restriction while printing the global page table entries through the debugfs. Change-Id: Ia2ef4243248ece477e3f679c0027379686670928 Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
This commit is contained in:
parent
92c49e0199
commit
b0ba6e4792
1 changed files with 5 additions and 3 deletions
|
@ -118,9 +118,11 @@ void kgsl_print_global_pt_entries(struct seq_file *s)
|
|||
if (memdesc == NULL)
|
||||
continue;
|
||||
|
||||
seq_printf(s, "0x%16.16llX-0x%16.16llX %16llu %s\n",
|
||||
memdesc->gpuaddr, memdesc->gpuaddr + memdesc->size - 1,
|
||||
memdesc->size, global_pt_entries[i].name);
|
||||
seq_printf(s, "0x%pK-0x%pK %16llu %s\n",
|
||||
(uint64_t *)(uintptr_t) memdesc->gpuaddr,
|
||||
(uint64_t *)(uintptr_t) (memdesc->gpuaddr +
|
||||
memdesc->size - 1), memdesc->size,
|
||||
global_pt_entries[i].name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue