summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorLoic Pallardy <loic.pallardy@st.com>2018-07-06 14:38:44 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-07-30 23:25:09 -0700
commit4499665b323670b42ec4c0d223c1e482e4e0621d (patch)
treec5ebec4785b080bbf2e188ae6b25383726fc74ce /drivers/remoteproc
parent276ec9934231e86857f219cb2adca54ea3c98127 (diff)
downloadblackbird-op-linux-4499665b323670b42ec4c0d223c1e482e4e0621d.tar.gz
blackbird-op-linux-4499665b323670b42ec4c0d223c1e482e4e0621d.zip
remoteproc: st_slim: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/st_slim_rproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/st_slim_rproc.c
index 1ffb1f0c43d6..d711d9430a4f 100644
--- a/drivers/remoteproc/st_slim_rproc.c
+++ b/drivers/remoteproc/st_slim_rproc.c
@@ -195,7 +195,8 @@ static void *slim_rproc_da_to_va(struct rproc *rproc, u64 da, int len)
}
}
- dev_dbg(&rproc->dev, "da = 0x%llx len = 0x%x va = 0x%p\n", da, len, va);
+ dev_dbg(&rproc->dev, "da = 0x%llx len = 0x%x va = 0x%pK\n",
+ da, len, va);
return va;
}
OpenPOWER on IntegriCloud