Skip to content
Commit e7ff3099 authored by Sanjay Singh's avatar Sanjay Singh 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 ussers by using %pK format-
specifier instead of %p. This respects the kptr_restrict sysctl
setting which is by default on. So by default %pK will print zeroes
as address. echo 1 to kptr_restrict to print proper kernel addresses.

CRs-Fixed: 987018
Change-Id: I4772257a557c6730ecc0624cbc8e5614e893e9fd
Signed-off-by: default avatarSanjay Singh <sisanj@codeaurora.org>
parent e837657f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment