[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180706130355.22100-1-benjamin.gaignard@st.com>
Date: Fri, 6 Jul 2018 15:03:55 +0200
From: Benjamin Gaignard <benjamin.gaignard@...aro.org>
To: mchehab@...nel.org, mcoquelin.stm32@...il.com,
alexandre.torgue@...com, hans.verkuil@...co.com,
hugues.fruchet@...com
Cc: linux-media@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Benjamin Gaignard <benjamin.gaignard@...com>
Subject: [PATCH] media: stm32: dcmi: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses.
Use "%pK" instead.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@...com>
---
drivers/media/platform/stm32/stm32-dcmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c
index 2e1933d872ee..fe90672cf16f 100644
--- a/drivers/media/platform/stm32/stm32-dcmi.c
+++ b/drivers/media/platform/stm32/stm32-dcmi.c
@@ -1753,7 +1753,7 @@ static int dcmi_probe(struct platform_device *pdev)
ret = clk_prepare(mclk);
if (ret) {
- dev_err(&pdev->dev, "Unable to prepare mclk %p\n", mclk);
+ dev_err(&pdev->dev, "Unable to prepare mclk %pK\n", mclk);
goto err_dma_release;
}
--
2.15.0
Powered by blists - more mailing lists