diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2018-07-06 09:02:20 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-09 13:31:57 -0400 |
commit | 90ec93cb6bca598357d001dc9ea3e5bcb2465303 (patch) | |
tree | 15dcfea557957457acb8f82f580245f7f916d091 /drivers/dma/stm32-dma.c | |
parent | e6a785116df09f07c8d185fb18211d2bbacb047b (diff) |
dmaengine: stm32: replace "%p" with "%pK"
The format specifier "%p" can leak kernel addresses.
Use "%pK" instead.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-dma.c')
-rw-r--r-- | drivers/dma/stm32-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 8c5807362a25..379e8d534e61 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c | |||
@@ -594,7 +594,7 @@ static void stm32_dma_start_transfer(struct stm32_dma_chan *chan) | |||
594 | 594 | ||
595 | chan->busy = true; | 595 | chan->busy = true; |
596 | 596 | ||
597 | dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan); | 597 | dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); |
598 | } | 598 | } |
599 | 599 | ||
600 | static void stm32_dma_configure_next_sg(struct stm32_dma_chan *chan) | 600 | static void stm32_dma_configure_next_sg(struct stm32_dma_chan *chan) |
@@ -693,7 +693,7 @@ static void stm32_dma_issue_pending(struct dma_chan *c) | |||
693 | 693 | ||
694 | spin_lock_irqsave(&chan->vchan.lock, flags); | 694 | spin_lock_irqsave(&chan->vchan.lock, flags); |
695 | if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { | 695 | if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { |
696 | dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan); | 696 | dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); |
697 | stm32_dma_start_transfer(chan); | 697 | stm32_dma_start_transfer(chan); |
698 | 698 | ||
699 | } | 699 | } |