mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
media: platform: mtk-mdp3: don't use %pK through printk
In the past %pK was preferable to %p as it would not leak raw pointer
values into the kernel log.
Since commit ad67b74d24 ("printk: hash addresses printed with %p")
the regular %p has been improved to avoid this issue.
Furthermore, restricted pointers ("%pK") were never meant to be used
through printk(). They can still unintentionally leak raw pointers or
acquire sleeping locks in atomic contexts.
Switch to the regular pointer formatting which is safer and
easier to reason about.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
d5d299e7e7
commit
5e6c90892c
|
|
@ -282,7 +282,7 @@ static int mdp_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
mdp->rproc_handle = scp_get_rproc(mdp->scp);
|
||||
dev_dbg(&pdev->dev, "MDP rproc_handle: %pK", mdp->rproc_handle);
|
||||
dev_dbg(&pdev->dev, "MDP rproc_handle: %p", mdp->rproc_handle);
|
||||
|
||||
mutex_init(&mdp->vpu_lock);
|
||||
mutex_init(&mdp->m2m_lock);
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ int mdp_vpu_dev_init(struct mdp_vpu_dev *vpu, struct mtk_scp *scp,
|
|||
}
|
||||
|
||||
dev_dbg(&mdp->pdev->dev,
|
||||
"VPU param:%pK pa:%pad sz:%zx, work:%pK pa:%pad sz:%zx, config:%pK pa:%pad sz:%zx",
|
||||
"VPU param:%p pa:%pad sz:%zx, work:%p pa:%pad sz:%zx, config:%p pa:%pad sz:%zx",
|
||||
vpu->param, &vpu->param_addr, vpu->param_size,
|
||||
vpu->work, &vpu->work_addr, vpu->work_size,
|
||||
vpu->config, &vpu->config_addr, vpu->config_size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user