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

Commit 6c3bb236 authored by Deepak Kushwah's avatar Deepak Kushwah Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarDeepak Kushwah <dkushwah@codeaurora.org>
parent cefbc175
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -443,7 +443,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) {