Replace %p with %pK to prevent leaking kernel address

BUG: 27532522
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
Git-commit: 066b75616cf93e7c3caa323a372bc22058791bd0
Git-repo: https://android.googlesource.com/kernel/msm
(cherry picked from commit 1ff4ea16e6df22383a7386d3937019deb63c5fdc)
Change-Id: I493d3b27cfeaaf63e3cf584c7048514d4d38905d
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
This commit is contained in:
Mohamad Ayyash 2016-05-11 13:18:35 -07:00 committed by Gerrit - the friendly Code Review server
parent ab26d09879
commit ae258564e4

View file

@ -1946,7 +1946,7 @@ static int qtaguid_ctrl_proc_show(struct seq_file *m, void *v)
);
f_count = atomic_long_read(
&sock_tag_entry->socket->file->f_count);
seq_printf(m, "sock=%p tag=0x%llx (uid=%u) pid=%u "
seq_printf(m, "sock=%pK tag=0x%llx (uid=%u) pid=%u "
"f_count=%lu\n",
sock_tag_entry->sk,
sock_tag_entry->tag, uid,