mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
ASoC: stm32: dfsdm: 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>
Link: https://patch.msgid.link/20251106-restricted-pointers-stm-v1-1-7d03eb5020ba@linutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
47d98d432f
commit
4db4ce1570
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private)
|
|||
src_size >>= 1;
|
||||
cur_size = src_size;
|
||||
|
||||
dev_dbg(rtd->dev, "%s: buff_add :%pK, pos = %d, size = %zu\n",
|
||||
dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %zu\n",
|
||||
__func__, &pcm_buff[priv->pos], priv->pos, src_size);
|
||||
|
||||
if ((priv->pos + src_size) > buff_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue