msm: vidc: use %pK instead of %p which respects kptr_restrict sysctl
Hide kernel pointers from unprivileged users by using %pK format- specifier instead of %p. This respects the kptr_restrict sysctl setting which is by default on. echo 0 to kptr_restrict to print proper kernel addresses. Change-Id: I6f14b039f2f193196edfce8160ae38341229085c Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
This commit is contained in:
parent
a49bb61510
commit
a94bbf3797
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ struct dentry *msm_vidc_debugfs_init_inst(struct msm_vidc_inst *inst,
|
|||
dprintk(VIDC_ERR, "Invalid params, inst: %pK\n", inst);
|
||||
goto exit;
|
||||
}
|
||||
snprintf(debugfs_name, MAX_DEBUGFS_NAME, "inst_%p", inst);
|
||||
snprintf(debugfs_name, MAX_DEBUGFS_NAME, "inst_%pK", inst);
|
||||
|
||||
idata = kzalloc(sizeof(struct core_inst_pair), GFP_KERNEL);
|
||||
if (!idata) {
|
||||
|
|
Loading…
Add table
Reference in a new issue